Merge pull request #226 from jdrowell/acme_uses_http

The ACME spec says that http validation should be done via http, not …
master
kaiyou 7 years ago committed by GitHub
commit 5fbaa3d390

@ -26,8 +26,19 @@ http {
server { server {
listen 80; listen 80;
listen 443 ssl;
listen [::]:80; listen [::]:80;
location /.well-known/acme-challenge {
proxy_pass http://admin:8081;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl; listen [::]:443 ssl;
# TLS configuration hardened according to: # TLS configuration hardened according to:
@ -43,10 +54,6 @@ http {
add_header Strict-Transport-Security max-age=15768000; add_header Strict-Transport-Security max-age=15768000;
if ($scheme = http) {
return 301 https://$host$request_uri;
}
# Load Lua variables # Load Lua variables
set_by_lua $webmail 'return os.getenv("WEBMAIL")'; set_by_lua $webmail 'return os.getenv("WEBMAIL")';
set_by_lua $webdav 'return os.getenv("WEBDAV")'; set_by_lua $webdav 'return os.getenv("WEBDAV")';
@ -93,9 +100,5 @@ http {
return 403; return 403;
} }
} }
location /.well-known/acme-challenge {
proxy_pass http://admin:8081;
}
} }
} }

Loading…
Cancel
Save