From 9638d1a73f99612d514e1f8554f4a6277a429977 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 10 Jan 2017 16:40:03 +0000 Subject: nginx: set the acme-challenge wels-known path properly for everything MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- theos/nginx/theos_kyriasis_com.sls | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'theos/nginx/theos_kyriasis_com.sls') 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 -- cgit v1.2.3-54-g00ecf