When I try to hit :56700, I am prompted for auth even though it's hardcoded (below). Even when I enter the correct credentials, it fails. What am I doing wrong?
Code: Select all
server {
listen 56700;
location / {
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_pass http://IP_CAMERA/cgi-bin/mjpg/video.cgi;
proxy_set_header Authorization "Basic xxx";
}
}