fix nginx acme challenge location
This commit is contained in:
		
							parent
							
								
									398d08cc12
								
							
						
					
					
						commit
						7f7079db9e
					
				@ -8,10 +8,10 @@ server {
 | 
			
		||||
    return 301 https://$host$request_uri;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
{% if acme_enabled and acme_challenge_dir is defined %}
 | 
			
		||||
{% if acme_enabled %}
 | 
			
		||||
  location ^~ /.well-known/acme-challenge/ {
 | 
			
		||||
		allow all;
 | 
			
		||||
		root {{ acme_challenge_dir }};
 | 
			
		||||
		alias {{ acme_config.challenge_dir + (acme_config.challenge_dir.endswith('/') | ternary('', '/')) }};
 | 
			
		||||
		try_files $uri =404;
 | 
			
		||||
	}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user