certbot: restore compatibility with old Nginx

This commit is contained in:
Jérémy Lecour 2020-06-03 18:24:40 +02:00 committed by Gitea
parent cd29ee4d33
commit 8d8e5f6998
2 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,8 @@ The **patch** part changes incrementally at each release.
### Fixed
* certbot: restore compatibility with old Nginx
### Removed
### Security

View File

@ -1,5 +1,9 @@
location ~ /.well-known/acme-challenge {
{% if ansible_distribution == "Debian" and ansible_distribution_major_version is version('8', '<=') %}
alias {{ certbot_work_dir }}/.well-known/acme-challenge;
{% else %}
alias {{ certbot_work_dir }}/;
{% endif %}
try_files $uri =404;
allow all;
}