Add selfie.town vhost to ubuntu/mercy.sickstack.com.yml

This commit is contained in:
staticsafe 2018-08-25 20:57:01 -04:00
parent 52f3df89ff
commit a887f9615b
1 changed files with 10 additions and 12 deletions

View File

@ -28,26 +28,23 @@
- location / {
proxy_pass http://127.0.0.1:3000;
}
wiki.sickstack.com.http:
selfie.town.http:
- listen *:80
- listen [::]:80
- server_name wiki.sickstack.com
- server_name selfie.town
- return 301 "https://$host$request_uri"
wiki.sickstack.com.https:
selfie.town.https:
- listen *:443 ssl http2
- listen [::]:443 ssl http2
- server_name wiki.sickstack.com
- root "/srv/www/wiki.sickstack.com"
- server_name selfie.town
- root "/home/pixelfed/pixelfed/public"
- index index.php
- access_log "/var/log/nginx/wiki.sickstack.com.access.log"
- error_log "/var/log/nginx/wiki.sickstack.com.error.log"
- ssl_certificate "/etc/ssl/letsencrypt/wiki.sickstack.com.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/wiki.sickstack.com.pem"
- access_log "/var/log/nginx/selfie.town.access.log"
- error_log "/var/log/nginx/selfie.town.error.log"
- ssl_certificate "/etc/ssl/letsencrypt/selfie.town.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/selfie.town.pem"
- ssl_stapling on
- add_header Strict-Transport-Security max-age=31536000
- location ~ /(data|conf|bin|inc)/ {
deny all;
}
- location / {
try_files $uri $uri/ /index.php?$args;
}
@ -60,6 +57,7 @@
fastcgi_index index.php;
}
nginx_configs:
gzip:
- gzip on