mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	* Add Caddyfile support of setting active health check request method * Add integration test for active health check request method
		
			
				
	
	
		
			41 lines
		
	
	
		
			558 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			558 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
:8884
 | 
						|
 | 
						|
reverse_proxy 127.0.0.1:65535 {
 | 
						|
	health_uri /health
 | 
						|
	health_method HEAD
 | 
						|
}
 | 
						|
----------
 | 
						|
{
 | 
						|
	"apps": {
 | 
						|
		"http": {
 | 
						|
			"servers": {
 | 
						|
				"srv0": {
 | 
						|
					"listen": [
 | 
						|
						":8884"
 | 
						|
					],
 | 
						|
					"routes": [
 | 
						|
						{
 | 
						|
							"handle": [
 | 
						|
								{
 | 
						|
									"handler": "reverse_proxy",
 | 
						|
									"health_checks": {
 | 
						|
										"active": {
 | 
						|
											"method": "HEAD",
 | 
						|
											"uri": "/health"
 | 
						|
										}
 | 
						|
									},
 | 
						|
									"upstreams": [
 | 
						|
										{
 | 
						|
											"dial": "127.0.0.1:65535"
 | 
						|
										}
 | 
						|
									]
 | 
						|
								}
 | 
						|
							]
 | 
						|
						}
 | 
						|
					]
 | 
						|
				}
 | 
						|
			}
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |