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;
}