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.
EVE-NG behind reverse proxy
Moderator: mike
-
- Posts: 1
- Joined: Mon Mar 08, 2021 11:00 am
EVE-NG behind reverse proxy
You do not have the required permissions to view the files attached to this post.
-
- Posts: 2
- Joined: Wed Aug 04, 2021 2:38 pm
Re: EVE-NG behind reverse proxy
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
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
-
- Posts: 2
- Joined: Wed Aug 04, 2021 2:38 pm
Re: EVE-NG behind reverse proxy
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
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