add 'well-known/acme-challenge' file

This commit is contained in:
histausse 2022-08-03 23:06:41 +02:00
parent ceb8391c06
commit b1c93d6089
Signed by: histausse
GPG key ID: 67486F107F62E9E9
3 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;
}