add char.packet.cat conf

This commit is contained in:
staticsafe 2019-07-27 11:56:59 -04:00
parent c074a6bb0a
commit a4b94b8ded
1 changed files with 18 additions and 0 deletions

View File

@ -280,6 +280,24 @@
fastcgi_pass php;
fastcgi_index index.php;
}
char.packet.cat.http:
- listen *:80
- listen [::]:80
- server_name char.packet.cat
- return 301 "https://$host$request_uri"
char.packet.cat.https:
- listen *:443 ssl http2
- listen [::]:443 ssl http2
- server_name char.packet.cat
- root "/srv/www/char.packet.cat"
- index index.html
- access_log "/var/log/nginx/char.packet.cat.access.log"
- error_log "/var/log/nginx/char.packet.cat.error.log"
- ssl_certificate "/etc/ssl/letsencrypt/char.packet.cat.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/char.packet.cat.pem"
- ssl_stapling on
- resolver [::1] valid=300s
- add_header Strict-Transport-Security max-age=31536000
nginx_configs:
gzip:
- gzip on