akashgoswami / ipm

IOTA node peer manager. Useful for monitoring IOTA peers
MIT License
72 stars 24 forks source link

Nginx reverse proxy #36

Closed rexberg closed 6 years ago

rexberg commented 6 years ago

Hi,

Would it be possible to run a reverse proxy through Nginx? This means that we could setup authentication and SSL.

Something like this:

...
location / {
        proxy_pass http://127.0.0.1:8888;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection 'upgrade';
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
    }
...

Best regards, Markus

ixidion commented 6 years ago

Should be not that hard. I will create some docker container for that the next days. At the moment my workaround is, to bind the API_port to localhost and then I'm doing a Portforwarding via SSH.

rexberg commented 6 years ago

Yes. The code I posted works with nginx as a reverse proxy. I will close this issue.