fix certbot verification path
This commit is contained in:
		@@ -1,2 +1,2 @@
 | 
			
		||||
---
 | 
			
		||||
certbot_challenge_webroot_path: /var/www/.acme-challenge
 | 
			
		||||
certbot_challenge_webroot_path: /var/www/html
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ server {
 | 
			
		||||
    server_name {{ gitea_domain }};
 | 
			
		||||
 | 
			
		||||
    location /.well-known/acme-challenge/ {
 | 
			
		||||
        root /var/www/.acme-challenge;
 | 
			
		||||
        root /var/www/html;
 | 
			
		||||
        try_files $uri =404;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ server {
 | 
			
		||||
    server_name {{ grafana_domain }};
 | 
			
		||||
 | 
			
		||||
    location /.well-known/acme-challenge/ {
 | 
			
		||||
        root /var/www/.acme-challenge;
 | 
			
		||||
        root /var/www/html;
 | 
			
		||||
        try_files $uri =404;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,11 +11,4 @@ server {
 | 
			
		||||
    location / {
 | 
			
		||||
        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 %}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user