ansible-roles/certbot/templates/acme-challenge/nginx.conf.j2

11 lines
325 B
Plaintext
Raw Normal View History

2019-09-27 00:13:30 +02:00
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 %}
2019-09-27 00:13:30 +02:00
alias {{ certbot_work_dir }}/;
{% endif %}
2019-09-27 00:13:30 +02:00
try_files $uri =404;
auth_basic off;
2019-09-27 00:13:30 +02:00
allow all;
}