From f74f453a090f49ccb6ff4e9357413e683c837864 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 27 Apr 2016 13:36:11 +0200 Subject: [PATCH] library/roles/nginx/templates/letsencrypt-proxy.conf.j2: Fix the letsencrypt configuration. --- nginx/templates/letsencrypt-proxy.conf.j2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nginx/templates/letsencrypt-proxy.conf.j2 b/nginx/templates/letsencrypt-proxy.conf.j2 index 1e43c274..bc67d273 100644 --- a/nginx/templates/letsencrypt-proxy.conf.j2 +++ b/nginx/templates/letsencrypt-proxy.conf.j2 @@ -1,4 +1,7 @@ -location /.well-known/acme-challenge { - proxy_pass http://127.0.0.1:{{ letsencrypt_acme_standalone_port}}/.well-known/acme-challenge ; +server { + location /.well-known/acme-challenge { + proxy_pass http://127.0.0.1:{{ letsencrypt_acme_standalone_port}}/.well-known/acme-challenge; + } } +