Good morning everyone, I have a mixed content issue with my Nginx proxy on Windows. I've uploaded the SSL certificate, and I can connect to the initial page. However, when I try to enter my credentials, I get blocked by mixed content. I've attached images of the page loaded over HTTP when connecting to the device directly.
This is my nginx conf:
server {
listen 150 ssl;
server_name 192.168.1.6;
ssl_certificate C:/nginx-1.24.0/ssl/certificate.pem;
ssl_certificate_key C:/nginx-1.24.0/ssl/privatekey.key;
location / {
proxy_pass http://192.168.1.40:150;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
}
}
server {
listen 443 ssl;
server_name 192.168.1.6;
ssl_certificate C:/nginx-1.24.0/ssl/certificate.pem;
ssl_certificate_key C:/nginx-1.24.0/ssl/privatekey.key;
location / {
proxy_pass http://192.168.1.40:443/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
}
}
}
Thank you!
Attachments:
open |
download -
http-without-nginx.png
(32.5 KB)