38 lines
973 B
Plaintext
Executable File
38 lines
973 B
Plaintext
Executable File
server {
|
|
access_log /var/log/nginx/pbin.access.log combined;
|
|
|
|
server_name pbin.zzls.xyz;
|
|
include configs/general.conf;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:40001;
|
|
include configs/proxyheaders.conf;
|
|
}
|
|
|
|
#include configs/securityheaders.conf;
|
|
# QUIC
|
|
add_header Alt-Svc 'h3=":443"; ma=86400';
|
|
|
|
|
|
listen 443 ssl http2;
|
|
listen 443 http3; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/pbin.zzls.xyz/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/pbin.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 = pbin.zzls.xyz) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
listen 80;
|
|
|
|
server_name pbin.zzls.xyz;
|
|
return 404; # managed by Certbot
|
|
|
|
|
|
}
|