From 844cbdc1a4cb7c87b87c213086081e03b2de5307 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 23 Nov 2016 22:25:41 +0000 Subject: nginx: Fixe https returns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- theos/init.sls | 1 + theos/nginx/git_kyriasis_com.sls | 2 +- theos/nginx/theos_kyriasis_com.sls | 8 +++----- theos/nginx/xan_kyriasis_com.sls | 4 +--- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/theos/init.sls b/theos/init.sls index 3303580..56f2ba5 100644 --- a/theos/init.sls +++ b/theos/init.sls @@ -2,6 +2,7 @@ include: - theos.nginx.theos_kyriasis_com - theos.nginx.xan_kyriasis_com - theos.nginx.git_kyriasis_com + - theos.nginx.gerrit_kyriasis_com - theos.opensmtpd # vim: set ft=yaml et: diff --git a/theos/nginx/git_kyriasis_com.sls b/theos/nginx/git_kyriasis_com.sls index d2c8fb2..64865fd 100644 --- a/theos/nginx/git_kyriasis_com.sls +++ b/theos/nginx/git_kyriasis_com.sls @@ -9,7 +9,7 @@ nginx: - server_name: git.kyriasis.com - listen: 80 - listen: '[::]:80' - - rewrite: '301 https://$server_name$request_uri' + - return: '301 https://$server_name$request_uri' - server: - server_name: git.kyriasis.com diff --git a/theos/nginx/theos_kyriasis_com.sls b/theos/nginx/theos_kyriasis_com.sls index 4b5f25d..cbcc756 100644 --- a/theos/nginx/theos_kyriasis_com.sls +++ b/theos/nginx/theos_kyriasis_com.sls @@ -9,7 +9,7 @@ nginx: - server_name: theos.kyriasis.com - listen: 80 - listen: '[::]:80' - - rewrite: '301 https://$server_name$request_uri' + - return: '301 https://$server_name$request_uri' - server: - server_name: theos.kyriasis.com @@ -58,8 +58,7 @@ nginx: - expires: modified +24h - location = /~kyrias/journal/10-mercurian-pronouns.html: - - return 301: - - https://web.archive.org/web/https://theos.kyriasis.com/~kyrias/journal/10-mercurian-pronouns.html + - return: '301 https://web.archive.org/web/https://theos.kyriasis.com/~kyrias/journal/10-mercurian-pronouns.html' - location ~ \.(js|css|png): - expires: modified +7d @@ -105,8 +104,7 @@ nginx: - expires: modified +24h - location = /~kyrias/journal/10-mercurian-pronouns.html: - - return 301: - - https://web.archive.org/web/https://theos.kyriasis.com/~kyrias/journal/10-mercurian-pronouns.html + - return: '301 https://web.archive.org/web/https://theos.kyriasis.com/~kyrias/journal/10-mercurian-pronouns.html' - location ~ \.(js|css|png): - expires: modified +7d diff --git a/theos/nginx/xan_kyriasis_com.sls b/theos/nginx/xan_kyriasis_com.sls index ad81a1a..f4a9d0f 100644 --- a/theos/nginx/xan_kyriasis_com.sls +++ b/theos/nginx/xan_kyriasis_com.sls @@ -9,9 +9,7 @@ nginx: - server_name: xan.kyriasis.com - listen: 80 - listen: '[::]:80' - - rewrite: - - '^ https://$server_name$request_uri?' - - permanent + - return: '301 https://$server_name$request_uri' - server: - server_name: xan.kyriasis.com -- cgit v1.2.3-70-g09d2