This forum is a read-only archive. Posting, replying and signing in are disabled.

Adding SSL to REST API

rstorm

How do I enable SSL for algod node? to make RESTful API?

David

I recommend looking at using nginx reverse proxy to add your own HTTPS endpoint. A web search on ‘nginx ssl reverse proxy’ should get you started.

rstorm

I did it, I was curious if I should change config.json file for NetAddress, EndPoint
should I leave it as is?

    "NetAddress": "",
    "EndpointAddress": "127.0.0.1:0",
David

You would change EndpointAddress to a specific port if you want to ensure it’s fixed (the :0 means 'try port 8080 but if that isn’t available, pick one at random). If nginx is running on the same machine, you can leave the IP at 127.0.0.1. If nginx is running on another host, you would either want to change that to your specific LAN IP or remove it (eg "EndpointAddress": ":8080").