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