Bitcoin

bitcoin cli – What is causing my wallet to not connect to my Electrum servers?

Running Bitcoin 26.0.0 with Armature 0.10.2 working, I have an nginx service that reverse-proxies connections on port 50002 to Armature to enable SSL. Every time I add a “allow” or “deny” directive to my nginx configuration, it actually makes my wallet unable to connect to electrical devices for some reason.

Here is my nginx configuration:

load_module /usr/lib/nginx/modules/ngx_stream_module.so;

events 
    worker_connections 10;


stream 
        upstream electrs 
                server 127.0.0.1:50001;
        

        server 
                listen 50002 ssl;
                proxy_pass electrs;

                ssl_certificate /etc/ssl/certs/electrs.crt;
                ssl_certificate_key /etc/ssl/private/electrs.key;
                ssl_session_cache shared:SSL:1m;
                ssl_session_timeout 1h;
                ssl_protocols TLSv1.3;
                ssl_prefer_server_ciphers on;

                # Allow connections only from the local network 
                allow 192.168.1.0/24; // If I remove these my wallets connect fine
                deny all;             // I don't know what could be wrong.
                                      // Clients connecting are on the local network and 
                                      // Will always be in 192.168.1.0/24
        


Related Articles

Back to top button