From 39f1bbcef72f167710e82c4016c233d9d5c8a085 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 27 Apr 2016 18:37:24 +0200 Subject: [PATCH] infrastructure-services/code-repo.yml: Add letsencrypt to manage the ssl certificates. library/roles/nginx/templates/letsencrypt-proxy.conf.j2: Fix the nginx config, again. --- nginx/templates/letsencrypt-proxy.conf.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nginx/templates/letsencrypt-proxy.conf.j2 b/nginx/templates/letsencrypt-proxy.conf.j2 index bc67d273..4c3978b0 100644 --- a/nginx/templates/letsencrypt-proxy.conf.j2 +++ b/nginx/templates/letsencrypt-proxy.conf.j2 @@ -1,6 +1,9 @@ server { - location /.well-known/acme-challenge { + listen 80 default_server; + location ^~ /.well-known/acme-challenge { proxy_pass http://127.0.0.1:{{ letsencrypt_acme_standalone_port}}/.well-known/acme-challenge; + access_log /var/log/nginx/letsencrypt_acmetool_access.log; + error_log /var/log/nginx/letsencrypt_acmetool_error.log; } }