server { access_log /var/log/nginx/i.access.log combined; #root /mnt/blockstorage/i/files/; index index.html index.htm index.nginx-debian.html; server_name i.zzls.xyz; include configs/general.conf; include configs/securityheaders.conf; location / { client_max_body_size 51M; proxy_pass http://127.0.0.1:40007/; include configs/proxy.conf; proxy_intercept_errors on; error_page 404 = /error; } listen 443 ssl http2; # managed by Certbot ssl_certificate /etc/letsencrypt/live/i.zzls.xyz/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/i.zzls.xyz/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = i.zzls.xyz) { return 301 https://$host$request_uri; } # managed by Certbot server_name i.zzls.xyz; listen 80; return 404; # managed by Certbot }