Hello
at first: great project! I do really appreciate this project and the work behind. Awesome community ♥
And here is my problem:
I've set up a Ubuntuserver with ZoneMinder. Everything is working except the original IP from then external User inside the logs.
Surrounding:
I've set up a nginx reverse proxy -> Apache
Here the config:
Code: Select all
server {
listen 443 http2;
ssl on;
ssl_certificate /cert.pem;
ssl_certificate_key /privkey.pem;
server_name *snipped*;
access_log /var/log/nginx/nginx.*snipped*.*snipped*.log;
error_log /var/log/nginx/nginx.*snipped*.*snipped*.log;
#not sure if this is really needed:
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header X-Permitted-Cross-Domain-Policies none;
add_header X-XSS-Protection "1; mode=block";
location / {
proxy_pass http://*snipped*:81/;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
#not sure if this is really needed:
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Any help is appreciated <3cat /var/log/zm/web_php.log | tail
2022/10/25 09:22:03.489700 web_php[70704].ERR [192.168.xxx.yyy] [Could not retrieve user c details] at /usr/share/zoneminder/www/includes/auth.php line 322
Thank you and best regards,
pixl