mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-25 15:52:45 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			86 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {
 | |
| 	local_certs
 | |
| }
 | |
| 
 | |
| *.tld, *.*.tld {
 | |
| 	tls {
 | |
| 		on_demand
 | |
| 	}
 | |
| }
 | |
| 
 | |
| foo.tld, www.foo.tld {
 | |
| }
 | |
| ----------
 | |
| {
 | |
| 	"apps": {
 | |
| 		"http": {
 | |
| 			"servers": {
 | |
| 				"srv0": {
 | |
| 					"listen": [
 | |
| 						":443"
 | |
| 					],
 | |
| 					"routes": [
 | |
| 						{
 | |
| 							"match": [
 | |
| 								{
 | |
| 									"host": [
 | |
| 										"foo.tld",
 | |
| 										"www.foo.tld"
 | |
| 									]
 | |
| 								}
 | |
| 							],
 | |
| 							"terminal": true
 | |
| 						},
 | |
| 						{
 | |
| 							"match": [
 | |
| 								{
 | |
| 									"host": [
 | |
| 										"*.tld",
 | |
| 										"*.*.tld"
 | |
| 									]
 | |
| 								}
 | |
| 							],
 | |
| 							"terminal": true
 | |
| 						}
 | |
| 					]
 | |
| 				}
 | |
| 			}
 | |
| 		},
 | |
| 		"tls": {
 | |
| 			"automation": {
 | |
| 				"policies": [
 | |
| 					{
 | |
| 						"subjects": [
 | |
| 							"foo.tld",
 | |
| 							"www.foo.tld"
 | |
| 						],
 | |
| 						"issuers": [
 | |
| 							{
 | |
| 								"module": "internal"
 | |
| 							}
 | |
| 						]
 | |
| 					},
 | |
| 					{
 | |
| 						"subjects": [
 | |
| 							"*.*.tld",
 | |
| 							"*.tld"
 | |
| 						],
 | |
| 						"issuers": [
 | |
| 							{
 | |
| 								"module": "internal"
 | |
| 							}
 | |
| 						],
 | |
| 						"on_demand": true
 | |
| 					},
 | |
| 					{
 | |
| 						"issuers": [
 | |
| 							{
 | |
| 								"module": "internal"
 | |
| 							}
 | |
| 						]
 | |
| 					}
 | |
| 				]
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| } |