From a887f9615b6f8157e10254129d8fbcd72fe39491 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sat, 25 Aug 2018 20:57:01 -0400 Subject: [PATCH] Add selfie.town vhost to ubuntu/mercy.sickstack.com.yml --- ubuntu/mercy.sickstack.com.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/ubuntu/mercy.sickstack.com.yml b/ubuntu/mercy.sickstack.com.yml index d79eaa3..0d5d6db 100644 --- a/ubuntu/mercy.sickstack.com.yml +++ b/ubuntu/mercy.sickstack.com.yml @@ -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