Merge pull request #226 from jdrowell/acme_uses_http

The ACME spec says that http validation should be done via http, not …
This commit is contained in:
kaiyou
2017-08-27 13:54:55 +02:00
committed by GitHub

View File

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