1
0
mirror of https://github.com/fspc/workstand.git synced 2025-02-23 09:13:23 -05:00

Add location for serving challenges.

This commit is contained in:
Drew Larson 2017-05-17 20:56:12 -06:00
parent 34f0a5c563
commit d68fd68c06

View File

@ -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