Page 1 of 1

EVE-NG behind reverse proxy

Posted: Mon Mar 08, 2021 11:21 am
by declan.marks
I am trying to set up a reverse proxy using Nginx Proxy Manager.

Everything is fine when the reverse proxy uses HTTP, I am able to log in. But when I change it to HTTPS nothing happens, I am unable to login.

I have tried to follow this guide: https://blog.monotok.org/eve-ng-access- ... rse-proxy/ but this hasn't worked. I have tried to enable SSL on EVE-NG but it has no effect.

I have submitted screenshots of the nginx configuration from NPM.

Re: EVE-NG behind reverse proxy

Posted: Wed Aug 04, 2021 4:03 pm
by swoop
Hello,

are there any news on this?

i am new to eve-ng and i try to put my eve-ng appliance also behind a nginx proxy manager.
it works with ssl and i can login, crate labs, and add technologie, even start it, but when i try to configure the devices, it opens a new tab and says "502 bad gateway"

I followed the same instructions.

thanx

Re: EVE-NG behind reverse proxy

Posted: Wed Aug 04, 2021 4:24 pm
by swoop
sorry, now it is working:

location /html5/
proxy_pass http://IP.TO.EVE.SERVER:80/html5/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

location /html5/websocket-tunnel
proxy_pass http://IP.TO.EVE.SERVER:80/html5/websocket-tunnel;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Advanced:
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;


good luck