deploy/templates/nginx.static.conf.j2
changeset 186 3458941945e0
parent 184 aac6db7cea99
--- a/deploy/templates/nginx.static.conf.j2	Fri Nov 30 14:49:30 2018 +0100
+++ b/deploy/templates/nginx.static.conf.j2	Fri Nov 30 22:04:27 2018 +0100
@@ -16,6 +16,11 @@
     root {{remote_static_path}}/;
     index index.html index.htm;
 
+    location /.well-known/acme-challenge {
+        alias /var/lib/letsencrypt/.well-known/acme-challenge;
+        default_type "text/plain";
+        try_files $uri =404;
+    }
 
     location {{backend_url}}/api {
         uwsgi_pass  {{backend_upstream_name}};