forked from evolix/ansible-roles
certbot: restore compatibility with old Nginx
This commit is contained in:
parent
cd29ee4d33
commit
8d8e5f6998
|
@ -27,6 +27,8 @@ The **patch** part changes incrementally at each release.
|
|||
|
||||
### Fixed
|
||||
|
||||
* certbot: restore compatibility with old Nginx
|
||||
|
||||
### Removed
|
||||
|
||||
### Security
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue