Browse Source

Add location for serving challenges.

feature/letsencrypt-webroot
Drew Larson 7 years ago
parent
commit
d68fd68c06
  1. 6
      docker/nginx/conf/nginx-site.conf

6
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

Loading…
Cancel
Save