mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 13:21:08 +00:00 
			
		
		
		
	
		
			
	
	
		
			59 lines
		
	
	
	
		
			755 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			59 lines
		
	
	
	
		
			755 B
		
	
	
	
		
			Text
		
	
	
	
	
	
|   | (snippet) { | ||
|  | 	header { | ||
|  | 		{block} | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | example.com { | ||
|  | 	import snippet { | ||
|  | 		foo bar | ||
|  | 	} | ||
|  | } | ||
|  | ---------- | ||
|  | { | ||
|  | 	"apps": { | ||
|  | 		"http": { | ||
|  | 			"servers": { | ||
|  | 				"srv0": { | ||
|  | 					"listen": [ | ||
|  | 						":443" | ||
|  | 					], | ||
|  | 					"routes": [ | ||
|  | 						{ | ||
|  | 							"match": [ | ||
|  | 								{ | ||
|  | 									"host": [ | ||
|  | 										"example.com" | ||
|  | 									] | ||
|  | 								} | ||
|  | 							], | ||
|  | 							"handle": [ | ||
|  | 								{ | ||
|  | 									"handler": "subroute", | ||
|  | 									"routes": [ | ||
|  | 										{ | ||
|  | 											"handle": [ | ||
|  | 												{ | ||
|  | 													"handler": "headers", | ||
|  | 													"response": { | ||
|  | 														"set": { | ||
|  | 															"Foo": [ | ||
|  | 																"bar" | ||
|  | 															] | ||
|  | 														} | ||
|  | 													} | ||
|  | 												} | ||
|  | 											] | ||
|  | 										} | ||
|  | 									] | ||
|  | 								} | ||
|  | 							], | ||
|  | 							"terminal": true | ||
|  | 						} | ||
|  | 					] | ||
|  | 				} | ||
|  | 			} | ||
|  | 		} | ||
|  | 	} | ||
|  | } |