mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-28 01:02:49 -04:00 
			
		
		
		
	* WIP: acmez v2, CertMagic, and ZeroSSL issuer upgrades * caddytls: ZeroSSLIssuer now uses ZeroSSL API instead of ACME * Fix go.mod * caddytls: Fix automation related to managers (fix #6060) * Fix typo (appease linter) * Fix HTTP validation with ZeroSSL API
		
			
				
	
	
		
			84 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| localhost
 | |
| 
 | |
| respond "hello from localhost"
 | |
| tls {
 | |
| 	issuer acme {
 | |
| 		propagation_delay 5m10s
 | |
| 		propagation_timeout 10m20s
 | |
| 	}
 | |
| 	issuer zerossl api_key {
 | |
| 		propagation_delay 5m30s
 | |
| 		propagation_timeout -1
 | |
| 	}
 | |
| }
 | |
| ----------
 | |
| {
 | |
| 	"apps": {
 | |
| 		"http": {
 | |
| 			"servers": {
 | |
| 				"srv0": {
 | |
| 					"listen": [
 | |
| 						":443"
 | |
| 					],
 | |
| 					"routes": [
 | |
| 						{
 | |
| 							"match": [
 | |
| 								{
 | |
| 									"host": [
 | |
| 										"localhost"
 | |
| 									]
 | |
| 								}
 | |
| 							],
 | |
| 							"handle": [
 | |
| 								{
 | |
| 									"handler": "subroute",
 | |
| 									"routes": [
 | |
| 										{
 | |
| 											"handle": [
 | |
| 												{
 | |
| 													"body": "hello from localhost",
 | |
| 													"handler": "static_response"
 | |
| 												}
 | |
| 											]
 | |
| 										}
 | |
| 									]
 | |
| 								}
 | |
| 							],
 | |
| 							"terminal": true
 | |
| 						}
 | |
| 					]
 | |
| 				}
 | |
| 			}
 | |
| 		},
 | |
| 		"tls": {
 | |
| 			"automation": {
 | |
| 				"policies": [
 | |
| 					{
 | |
| 						"subjects": [
 | |
| 							"localhost"
 | |
| 						],
 | |
| 						"issuers": [
 | |
| 							{
 | |
| 								"challenges": {
 | |
| 									"dns": {
 | |
| 										"propagation_delay": 310000000000,
 | |
| 										"propagation_timeout": 620000000000
 | |
| 									}
 | |
| 								},
 | |
| 								"module": "acme"
 | |
| 							},
 | |
| 							{
 | |
| 								"api_key": "api_key",
 | |
| 								"cname_validation": {
 | |
| 									"propagation_delay": 330000000000,
 | |
| 									"propagation_timeout": -1
 | |
| 								},
 | |
| 								"module": "zerossl"
 | |
| 							}
 | |
| 						]
 | |
| 					}
 | |
| 				]
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| } |