add vhost for wiki.tenforward.social to dresden

This commit is contained in:
packetcat 2023-07-02 21:14:54 -04:00
parent 355f8d0066
commit 86acf67b13
1 changed files with 30 additions and 0 deletions

View File

@ -30,6 +30,36 @@
- ssl_certificate "/etc/ssl/letsencrypt/donate.tenforward.social.crt" - ssl_certificate "/etc/ssl/letsencrypt/donate.tenforward.social.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/donate.tenforward.social.pem" - ssl_certificate_key "/etc/ssl/letsencrypt/donate.tenforward.social.pem"
- include snippets/sslstapling_hsts.conf - include snippets/sslstapling_hsts.conf
wiki.tenforward.social.http:
- listen *:80
- listen [::]:80
- server_name wiki.tenforward.social
- return 301 "https://$host$request_uri"
wiki.tenforward.social.https:
- listen *:443 ssl http2
- listen [::]:443 ssl http2
- server_name wiki.tenforward.social
- root "/srv/www/wiki.tenforward.social"
- index index.php
- access_log "/var/log/nginx/wiki.tenforward.social.access.log"
- error_log "/var/log/nginx/wiki.tenforward.social.error.log"
- ssl_certificate "/etc/ssl/letsencrypt/wiki.tenforward.social.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/wiki.tenforward.social.pem"
- include snippets/sslstapling_hsts.conf
- location ~ /(data|conf|bin|inc)/ {
deny all;
}
- location / {
try_files $uri $uri/ /index.php?$args;
}
- location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass php;
fastcgi_index index.php;
}
nginx_snippets: nginx_snippets:
sslstapling_hsts: sslstapling_hsts:
- ssl_stapling on - ssl_stapling on