simplify acme config

This commit is contained in:
HgO
2020-12-30 14:27:29 +01:00
parent 3365215ceb
commit b0b5d8c24a
2 changed files with 2 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ server {
{% if acme_enabled %}
location ^~ /.well-known/acme-challenge/ {
allow all;
alias {{ acme_config.challenge_dir + (acme_config.challenge_dir.endswith('/') | ternary('', '/')) }};
root {{ acme_root_dir }};
try_files $uri =404;
}
{% endif %}