diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2017-01-10 16:40:03 +0000 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-01-10 16:40:03 +0000 |
commit | 9638d1a73f99612d514e1f8554f4a6277a429977 (patch) | |
tree | 999cee7f7e3fd79b4be0504d6c0bde0e1cadbf85 /theos/nginx | |
parent | c08292040f51f8ebc67c0c75c7bc83980a914929 (diff) | |
download | pillar-9638d1a73f99612d514e1f8554f4a6277a429977.tar.xz |
nginx: set the acme-challenge wels-known path properly for everything
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'theos/nginx')
-rw-r--r-- | theos/nginx/git_kyriasis_com.sls | 7 | ||||
-rw-r--r-- | theos/nginx/theos_kyriasis_com.sls | 5 | ||||
-rw-r--r-- | theos/nginx/xan_kyriasis_com.sls | 7 |
3 files changed, 17 insertions, 2 deletions
diff --git a/theos/nginx/git_kyriasis_com.sls b/theos/nginx/git_kyriasis_com.sls index 64865fd..8c88d12 100644 --- a/theos/nginx/git_kyriasis_com.sls +++ b/theos/nginx/git_kyriasis_com.sls @@ -9,8 +9,13 @@ nginx: - server_name: git.kyriasis.com - listen: 80 - listen: '[::]:80' + + - location /.well-known/acme-challenge: + - root: /srv/http/ + - return: '301 https://$server_name$request_uri' + - server: - server_name: git.kyriasis.com - listen: 443 ssl http2 @@ -42,7 +47,7 @@ nginx: - fastcgi_param: QUERY_STRING $args - fastcgi_pass: unix:/run/fcgiwrap.sock - - location /.well-known: + - location /.well-known/acme-challenge: - root: /srv/http/ # vim: ft=yaml et: diff --git a/theos/nginx/theos_kyriasis_com.sls b/theos/nginx/theos_kyriasis_com.sls index cbcc756..890e8a6 100644 --- a/theos/nginx/theos_kyriasis_com.sls +++ b/theos/nginx/theos_kyriasis_com.sls @@ -9,8 +9,13 @@ nginx: - server_name: theos.kyriasis.com - listen: 80 - listen: '[::]:80' + + - location /.well-known/acme-challenge: + - root: /srv/http + - return: '301 https://$server_name$request_uri' + - server: - server_name: theos.kyriasis.com - listen: 443 ssl http2 diff --git a/theos/nginx/xan_kyriasis_com.sls b/theos/nginx/xan_kyriasis_com.sls index f4a9d0f..267ccdb 100644 --- a/theos/nginx/xan_kyriasis_com.sls +++ b/theos/nginx/xan_kyriasis_com.sls @@ -9,8 +9,13 @@ nginx: - server_name: xan.kyriasis.com - listen: 80 - listen: '[::]:80' + + - location /.well-known/acme-challenge: + - root: /srv/http/ + - return: '301 https://$server_name$request_uri' + - server: - server_name: xan.kyriasis.com - listen: 443 ssl http2 @@ -60,7 +65,7 @@ nginx: - location ^~ ^/(bin|docs|extensions|includes|maintenance|mw-config|resources|serialized|tests)/: - internal: '' - - location /.well-known: + - location /.well-known/acme-challenge: - root: /srv/http/ # vim: ft=yaml et: |