Post
Topic
Board Development & Technical Discussion
Re: Open RPC to the public Internet
by
NotATether
on 08/04/2024, 13:30:09 UTC
Hello,

Thanks for your answer. Nginx acts as a reverse proxy? Cool, so I just have to configure nginx about 8332 port communication?

Yeah you can create a site configuration for sending requests from a particular (sub-)domain you have to your node, and it will look something like this:

Code:
server {
    server_name example.com;

    location / {
        proxy_pass http://127.0.0.1:8332;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Scheme $scheme;
    }
}

And then run certbot on it to get an HTTPS certificate.