fix certbot verification path

This commit is contained in:
Ryan Cavicchioni 2020-08-22 09:59:26 -05:00
parent 4f2e05439e
commit 302b6525f6
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
4 changed files with 3 additions and 10 deletions

View File

@ -1,2 +1,2 @@
--- ---
certbot_challenge_webroot_path: /var/www/.acme-challenge certbot_challenge_webroot_path: /var/www/html

View File

@ -6,7 +6,7 @@ server {
server_name {{ gitea_domain }}; server_name {{ gitea_domain }};
location /.well-known/acme-challenge/ { location /.well-known/acme-challenge/ {
root /var/www/.acme-challenge; root /var/www/html;
try_files $uri =404; try_files $uri =404;
} }

View File

@ -6,7 +6,7 @@ server {
server_name {{ grafana_domain }}; server_name {{ grafana_domain }};
location /.well-known/acme-challenge/ { location /.well-known/acme-challenge/ {
root /var/www/.acme-challenge; root /var/www/html;
try_files $uri =404; try_files $uri =404;
} }

View File

@ -11,11 +11,4 @@ server {
location / { location / {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }
{% if nginx_acme_challenge_enabled %}
location /.well-known/acme-challenge/ {
alias {{ nginx_acme_challenge_path }};
try_files $uri $uri/ =404;
}
{% endif %}
} }