diff --git a/nginx/templates/letsencrypt-proxy.conf.j2 b/nginx/templates/letsencrypt-proxy.conf.j2 index 1e43c27..bc67d27 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; + } } +