add 7tv.gay
This commit is contained in:
parent
caf95a8362
commit
56df91b11e
1 changed files with 34 additions and 0 deletions
34
nginx/sites-available/7tv.gay.conf
Normal file
34
nginx/sites-available/7tv.gay.conf
Normal file
|
@ -0,0 +1,34 @@
|
|||
server {
|
||||
access_log /var/log/nginx/7tv.gay.access.log combined;
|
||||
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;
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue