Proxy Setup
Make API/RPC available externally
One easy way to make thornodes and midgards API or RPC endpoints available ecternally is by using a reverse proxy, a webserver that accepts all HTTP(S) requests and forwards them to the specific application.
DNS records
The reverse proxy needs a way to distinguish between the endpoints that it needs to address. One way to do this is by using different DNS records for each service, for example: api.yourdomain.com, rpc.yourdomain.com, midgard.yourdomain.com
Install prerequisites
apt install -y --no-install-recommends nginxConfiguration
Remove default page
The default page is not needed and can be removed:
rm -f /etc/nginx/sites-enabled/defaultEnable THORNode API endpoint
When using a self built version of THORNode, the API endpoint is disabled by default and needs to be enabled in the thornode app config.
Thornode needs to be restarted, for the changes to take effect.
Proxy configuration
Create the required proxy configurations
Restart proxy service
Last updated