mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 13:21:08 +00:00 
			
		
		
		
	
		
			
	
	
		
			58 lines
		
	
	
	
		
			728 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			58 lines
		
	
	
	
		
			728 B
		
	
	
	
		
			Text
		
	
	
	
	
	
|   | localhost | ||
|  | 
 | ||
|  | tls { | ||
|  | 	issuer acme { | ||
|  | 		preferred_chains { | ||
|  | 			any_common_name "Generic CA 1" "Generic CA 2" | ||
|  | 		} | ||
|  | 	} | ||
|  | } | ||
|  | ---------- | ||
|  | { | ||
|  | 	"apps": { | ||
|  | 		"http": { | ||
|  | 			"servers": { | ||
|  | 				"srv0": { | ||
|  | 					"listen": [ | ||
|  | 						":443" | ||
|  | 					], | ||
|  | 					"routes": [ | ||
|  | 						{ | ||
|  | 							"match": [ | ||
|  | 								{ | ||
|  | 									"host": [ | ||
|  | 										"localhost" | ||
|  | 									] | ||
|  | 								} | ||
|  | 							], | ||
|  | 							"terminal": true | ||
|  | 						} | ||
|  | 					] | ||
|  | 				} | ||
|  | 			} | ||
|  | 		}, | ||
|  | 		"tls": { | ||
|  | 			"automation": { | ||
|  | 				"policies": [ | ||
|  | 					{ | ||
|  | 						"subjects": [ | ||
|  | 							"localhost" | ||
|  | 						], | ||
|  | 						"issuers": [ | ||
|  | 							{ | ||
|  | 								"module": "acme", | ||
|  | 								"preferred_chains": { | ||
|  | 									"any_common_name": [ | ||
|  | 										"Generic CA 1", | ||
|  | 										"Generic CA 2" | ||
|  | 									] | ||
|  | 								} | ||
|  | 							} | ||
|  | 						] | ||
|  | 					} | ||
|  | 				] | ||
|  | 			} | ||
|  | 		} | ||
|  | 	} | ||
|  | } |