• [^] # Re: En suivant la doc ...

    Posté par . En réponse au message Mise en oeuvre ZoneMinder. Évalué à 1.

    Il y a sous les dépots de debian bullseye la version 1.34 de zoneminder.

    Donc j'avais commencé comme cela et avec nginx au lieu de apache2.

    Je ne compte pas changer de serveur web.

    Je peux vous montrer ma conf nginx.

    Les gens utilisent ce doc pour installer sous Debian Bullseye.

    https://wiki.zoneminder.com/Debian_11_Bullseye_with_Zoneminder_1.36.x

    De mon côté j'ai installé la version des dépots de bebian bullseye, 1.34.

    Sauf que je n'utilise pas apache2 mais nginx.

    Voici la conf que j'ai mise.

    /etc/nginx/sites-enabled/zone.mondomain.com

    server {
     listen 80;
     listen [::]:80;
     server_name zone.mondomain.com;
     include /etc/nginx/zoneminder.conf;
     # Enforce HTTPS
     #return 301 https://$server_name$request_uri;
    }
    server {
     listen 443 ssl;
     server_name zone.mondomain.com;
     access_log /var/log/nginx/zone.mondomain.com.access;
     error_log /var/log/nginx/zone.mondomain.com.error;
     #rewrite_log on;
     # Path to the root of your installation
     root /usr/share/zoneminder/www;
     #ssl on;
     ssl_certificate /etc/letsencrypt/live/zone.mondomain.com/fullchain.pem; # managed by Certbot
     ssl_certificate_key /etc/letsencrypt/live/zone.mondomain.com/privkey.pem; # managed by Certbot
     keepalive_timeout 60;
     ssl_session_timeout 10m;
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
     ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
     ssl_prefer_server_ciphers on;
    }
    

    /etc/nginx/zoneminder.conf

    location /zoneminder/cgi-bin {
     gzip off;
     root /usr/lib;
     include fastcgi_params;
     fastcgi_param SCRIPT_FILENAME /usr/lib/zoneminder/cgi-bin/nph-zms;
     fastcgi_intercept_errors on;
     fastcgi_pass unix:/var/run/fcgiwrap.socket;
    }
    location /zoneminder/ {
     gzip off;
     alias /usr/share/zoneminder/www/;
     index index.php;
     location ~ \.php$ {
     include fastcgi_params;
     # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
     fastcgi_param SCRIPT_FILENAME $request_filename;
     fastcgi_intercept_errors on;
     fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
     }
     location ~* /zoneminder/.*\.(txt|log)$ {
     deny all;
     }
     location ~* /zoneminder/.*\.(m4a|mp4|mov)$ {
     #mp4;
     #mp4_buffer_size 5M;
     #mp4_max_buffer_size 10M;
     }
    }