mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 21:31:07 +00:00 
			
		
		
		
	
		
			
	
	
		
			60 lines
		
	
	
	
		
			872 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			60 lines
		
	
	
	
		
			872 B
		
	
	
	
		
			Text
		
	
	
	
	
	
|   | { | ||
|  | 	servers { | ||
|  | 		trusted_proxies_unix | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | example.com { | ||
|  | 	reverse_proxy https://local:8080 | ||
|  | } | ||
|  | ---------- | ||
|  | { | ||
|  | 	"apps": { | ||
|  | 		"http": { | ||
|  | 			"servers": { | ||
|  | 				"srv0": { | ||
|  | 					"listen": [ | ||
|  | 						":443" | ||
|  | 					], | ||
|  | 					"routes": [ | ||
|  | 						{ | ||
|  | 							"match": [ | ||
|  | 								{ | ||
|  | 									"host": [ | ||
|  | 										"example.com" | ||
|  | 									] | ||
|  | 								} | ||
|  | 							], | ||
|  | 							"handle": [ | ||
|  | 								{ | ||
|  | 									"handler": "subroute", | ||
|  | 									"routes": [ | ||
|  | 										{ | ||
|  | 											"handle": [ | ||
|  | 												{ | ||
|  | 													"handler": "reverse_proxy", | ||
|  | 													"transport": { | ||
|  | 														"protocol": "http", | ||
|  | 														"tls": {} | ||
|  | 													}, | ||
|  | 													"upstreams": [ | ||
|  | 														{ | ||
|  | 															"dial": "local:8080" | ||
|  | 														} | ||
|  | 													] | ||
|  | 												} | ||
|  | 											] | ||
|  | 										} | ||
|  | 									] | ||
|  | 								} | ||
|  | 							], | ||
|  | 							"terminal": true | ||
|  | 						} | ||
|  | 					], | ||
|  | 					"trusted_proxies_unix": true | ||
|  | 				} | ||
|  | 			} | ||
|  | 		} | ||
|  | 	} | ||
|  | } |