40 lines
1 KiB
Text
40 lines
1 KiB
Text
server {
|
|
access_log /var/log/nginx/7tv.gay.access.log combined;
|
|
error_log /var/log/nginx/7tv.gay.error.log;
|
|
root /var/www/7tv;
|
|
index index.html index index.htm;
|
|
server_name 7tv.gay;
|
|
|
|
# Security headers and general settings
|
|
include configs/securityheaders.conf;
|
|
include configs/general.conf;
|
|
|
|
#alocation = / {
|
|
# alias /var/www/7tv/gayge.png;
|
|
# index
|
|
# }
|
|
|
|
# QUIC
|
|
add_header Alt-Svc 'h3=":443"; ma=86400';
|
|
|
|
listen 443 http3;
|
|
listen 443 http2 ssl; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/7tv.gay/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/7tv.gay/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 = 7tv.gay) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
listen 80;
|
|
|
|
server_name 7tv.gay;
|
|
return 404; # managed by Certbot
|
|
|
|
|
|
}
|