From d68fd68c0686bc4b75096d1d834fad10cf6ff33f Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Wed, 17 May 2017 20:56:12 -0600 Subject: [PATCH] Add location for serving challenges. --- docker/nginx/conf/nginx-site.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/nginx/conf/nginx-site.conf b/docker/nginx/conf/nginx-site.conf index 06b13b3..74aa70b 100644 --- a/docker/nginx/conf/nginx-site.conf +++ b/docker/nginx/conf/nginx-site.conf @@ -38,6 +38,12 @@ server { root /code; } + # Let's encrypt certonly + location '/.well-known/acme-challenge' { + default_type "text/plain"; + root /tmp/letsencrypt-auto; + } + location @proxy_to_app { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # enable this if and only if you use HTTPS