34 lines
929 B
Text
Executable file
34 lines
929 B
Text
Executable file
server {
|
|
|
|
access_log /var/log/nginx/donate.access.log combined;
|
|
|
|
root /var/www/donate;
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
server_name donate.zzls.xyz;
|
|
include configs/general.conf;
|
|
include configs/securityheaders.conf;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
listen 443 ssl; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/donate.zzls.xyz/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/donate.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 = donate.zzls.xyz) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
server_name donate.zzls.xyz;
|
|
listen 80;
|
|
return 404; # managed by Certbot
|
|
|
|
|
|
}
|