mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-03 09:13:32 +00:00 
			
		
		
		
	- Do not apply HTTPs redirection for challenge used by the test. - Set the `User-Agent` to avoid 403 answer from site24x7.com. - Handle JSON parsing failure of the received body. - Better handling of different error cases.
		
			
				
	
	
		
			11 lines
		
	
	
		
			204 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			204 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
set $test "";
 | 
						|
if ($scheme = "http") {
 | 
						|
	set $test "H";
 | 
						|
}
 | 
						|
if ($request_uri = /.well-known/acme-challenge/test-challenge) {
 | 
						|
	set $test "${test}T";
 | 
						|
}
 | 
						|
if ($test = H) {
 | 
						|
	return 301 https://$host$request_uri;
 | 
						|
}
 |