41 lines
1.1 KiB
Plaintext
Executable File
41 lines
1.1 KiB
Plaintext
Executable File
server {
|
|
access_log /var/log/nginx/ii.access.log combined;
|
|
error_log /var/log/nginx/ii.error.log;
|
|
|
|
root /opt/ImageUpload/ifiles/;
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
server_name ii.zzls.xyz;
|
|
include configs/general.conf;
|
|
include configs/securityheaders.conf;
|
|
|
|
location /upload {
|
|
client_max_body_size 4096M;
|
|
auth_basic "Restricted Content";
|
|
auth_basic_user_file /etc/fileupload.htpasswd;
|
|
proxy_pass http://localhost:40006;
|
|
include configs/proxyheaders.conf;
|
|
}
|
|
|
|
listen 443 http3;
|
|
listen 443 ssl http2; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/ii.zzls.xyz/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/ii.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 = ii.zzls.xyz) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
listen 80;
|
|
|
|
server_name ii.zzls.xyz;
|
|
return 404; # managed by Certbot
|
|
|
|
|
|
}
|