djrm
Regular Contributor
Hi everyone,
I'm setting a gninx proxy at home mainly to secure devices with no https support like cams and it works ok, however, trying to add a location for the router I'm able to reach the web gui, but the login doesn't work at all, even if I try to login without user and password the gui don't say the typical message " Invalid username or password" which is showed if I try the same login without the proxy.
Is there anyone who could help me to fix this issue?
This is what I have in the site conf file for your reference:
Thanks in advance
I'm setting a gninx proxy at home mainly to secure devices with no https support like cams and it works ok, however, trying to add a location for the router I'm able to reach the web gui, but the login doesn't work at all, even if I try to login without user and password the gui don't say the typical message " Invalid username or password" which is showed if I try the same login without the proxy.
Is there anyone who could help me to fix this issue?
This is what I have in the site conf file for your reference:
Code:
server {
listen 8000 ssl ;
access_log /var/log/nginx/example.access.log;
error_log /var/log/nginx/example.error.log;
server_name example.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://192.168.250.1:80/;
proxy_read_timeout 90s;
}
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # man$
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # m$
}
Thanks in advance