EVE-NG behind reverse proxy

Moderator: mike

Post Reply
declan.marks
Posts: 1
Joined: Mon Mar 08, 2021 11:00 am

EVE-NG behind reverse proxy

Post by declan.marks » Mon Mar 08, 2021 11:21 am

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.
You do not have the required permissions to view the files attached to this post.

swoop
Posts: 2
Joined: Wed Aug 04, 2021 2:38 pm

Re: EVE-NG behind reverse proxy

Post by swoop » Wed Aug 04, 2021 4:03 pm

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

swoop
Posts: 2
Joined: Wed Aug 04, 2021 2:38 pm

Re: EVE-NG behind reverse proxy

Post by swoop » Wed Aug 04, 2021 4:24 pm

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

Post Reply