add 'well-known/acme-challenge' file

fix_filter
histausse 2 years ago
parent ceb8391c06
commit b1c93d6089
Signed by: histausse
GPG Key ID: 67486F107F62E9E9

@ -17,6 +17,11 @@
loop:
- connection_upgrade.conf # fix some nginx bug
- name: Ensure the cert directory exists
file:
path: /var/www/well-known/acme-challenge/.well-known/acme-challenge
state: directory
- name: Ensure the cert directory exists
file:
path: /etc/nginx/certs

@ -9,6 +9,11 @@ server {
return 302 https://$host$request_uri;
}
# ACME directory, to limit interaction with certbot
location /.well-known/acme-challenge/ {
root /var/www/well-known/acme-challenge/;
}
include /etc/nginx/mime.types;
default_type application/octet-stream;

@ -44,7 +44,7 @@ stream {
r3.o.lencr.org r3;
{% for rp in (ssl_reverse_proxy_upstream | default({}) | dict2items) -%}
{{ rp.value.sni_server_name }} {{ rp.key }};
{%- endfor %}
{% endfor %}
default local;
}

Loading…
Cancel
Save