Skip to content

Electrs

Authentication with bitcoind

The authentication cannot be done with environment variables or command line parameters. It has to be done either with config.toml (electrs config example) or with .bitcoin/.cookie

We'll use the .cookie file for authentication

TCP traefik SSL Proxy

The connections are now routed through traefik TCP proxy. The electrum wallet now connects using FQDN with SSL port 50002 and then traefik routes the TCP calls through unencrypted TCP to electrs container.

Traefik takes care of the certificate renewals.

In your electrum wallet, now the connection string is electrum.yourdomain.com:50002:s

Reference

  • https://github.com/romanz/electrs/blob/master/doc/config.md#configuration-files-and-priorities