mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-28 09:12:52 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			67 lines
		
	
	
		
			900 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			900 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {
 | |
| 	pki {
 | |
| 		ca custom-ca {
 | |
| 			name "Custom CA"
 | |
| 		}
 | |
| 	}
 | |
| }
 | |
| 
 | |
| acme.example.com {
 | |
| 	acme_server {
 | |
| 		ca custom-ca
 | |
| 		challenges dns-01 http-01
 | |
| 	}
 | |
| }
 | |
| ----------
 | |
| {
 | |
| 	"apps": {
 | |
| 		"http": {
 | |
| 			"servers": {
 | |
| 				"srv0": {
 | |
| 					"listen": [
 | |
| 						":443"
 | |
| 					],
 | |
| 					"routes": [
 | |
| 						{
 | |
| 							"match": [
 | |
| 								{
 | |
| 									"host": [
 | |
| 										"acme.example.com"
 | |
| 									]
 | |
| 								}
 | |
| 							],
 | |
| 							"handle": [
 | |
| 								{
 | |
| 									"handler": "subroute",
 | |
| 									"routes": [
 | |
| 										{
 | |
| 											"handle": [
 | |
| 												{
 | |
| 													"ca": "custom-ca",
 | |
| 													"challenges": [
 | |
| 														"dns-01",
 | |
| 														"http-01"
 | |
| 													],
 | |
| 													"handler": "acme_server"
 | |
| 												}
 | |
| 											]
 | |
| 										}
 | |
| 									]
 | |
| 								}
 | |
| 							],
 | |
| 							"terminal": true
 | |
| 						}
 | |
| 					]
 | |
| 				}
 | |
| 			}
 | |
| 		},
 | |
| 		"pki": {
 | |
| 			"certificate_authorities": {
 | |
| 				"custom-ca": {
 | |
| 					"name": "Custom CA"
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| }
 |