add vhost for wiki.bastetrix.org

This commit is contained in:
packetcat 2023-11-18 18:29:33 -05:00
parent d6aaedae52
commit 7099c9bad5
1 changed files with 24 additions and 0 deletions

View File

@ -200,6 +200,30 @@
- ssl_certificate "/etc/ssl/letsencrypt/bastetrix.com.crt" - ssl_certificate "/etc/ssl/letsencrypt/bastetrix.com.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/bastetrix.com.pem" - ssl_certificate_key "/etc/ssl/letsencrypt/bastetrix.com.pem"
- include snippets/sslstapling_hsts.conf - include snippets/sslstapling_hsts.conf
wiki.bastetrix.org.http:
- listen *:80
- listen [::]:80
- server_name wiki.bastetrix.org
- root "/srv/www/wiki.bastetrix.org"
- location /.well-known/acme-challenge/ {
allow all;
}
- return 301 "https://$host$request_uri"
wiki.bastetrix.org.https:
- listen *:443 ssl http2
- listen [::]:443 ssl http2
- server_name wiki.bastetrix.org
- root "/srv/www/wiki.bastetrix.org"
- index index.php
- access_log "/var/log/nginx/wiki.bastetrix.org.access.log"
- error_log "/var/log/nginx/wiki.bastetrix.org.error.log"
- ssl_certificate "/etc/ssl/letsencrypt/wiki.bastetrix.org.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/wiki.bastetrix.org.pem"
- include snippets/sslstapling_hsts.conf
- location ~ /(data|conf|bin|inc)/ {
deny all;
}
- include snippets/php_standard.conf
nginx_snippets: nginx_snippets:
sslstapling_hsts: sslstapling_hsts:
- ssl_stapling on - ssl_stapling on