mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-26 08:12:43 -04:00 
			
		
		
		
	
		
			Some checks failed
		
		
	
	Tests / test (./cmd/caddy/caddy, ~1.24.1, ubuntu-latest, 0, 1.24, linux) (push) Failing after 1m55s
				
			Tests / test (s390x on IBM Z) (push) Has been skipped
				
			Tests / goreleaser-check (push) Has been skipped
				
			Cross-Build / build (~1.24.1, 1.24, aix) (push) Successful in 1m12s
				
			Cross-Build / build (~1.24.1, 1.24, darwin) (push) Successful in 1m14s
				
			Cross-Build / build (~1.24.1, 1.24, dragonfly) (push) Successful in 1m12s
				
			Cross-Build / build (~1.24.1, 1.24, freebsd) (push) Successful in 1m14s
				
			Cross-Build / build (~1.24.1, 1.24, illumos) (push) Successful in 1m12s
				
			Cross-Build / build (~1.24.1, 1.24, linux) (push) Successful in 1m13s
				
			Cross-Build / build (~1.24.1, 1.24, netbsd) (push) Successful in 1m15s
				
			Cross-Build / build (~1.24.1, 1.24, openbsd) (push) Successful in 1m19s
				
			Cross-Build / build (~1.24.1, 1.24, solaris) (push) Successful in 1m13s
				
			Cross-Build / build (~1.24.1, 1.24, windows) (push) Successful in 1m15s
				
			Lint / lint (ubuntu-latest, linux) (push) Successful in 2m2s
				
			Lint / govulncheck (push) Successful in 1m32s
				
			Tests / test (./cmd/caddy/caddy, ~1.24.1, macos-14, 0, 1.24, mac) (push) Has been cancelled
				
			Tests / test (./cmd/caddy/caddy.exe, ~1.24.1, windows-latest, True, 1.24, windows) (push) Has been cancelled
				
			Lint / lint (macos-14, mac) (push) Has been cancelled
				
			Lint / lint (windows-latest, windows) (push) Has been cancelled
				
			Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
		
			
				
	
	
		
			73 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {
 | |
| 	pki {
 | |
| 		ca custom-ca {
 | |
| 			name "Custom CA"
 | |
| 		}
 | |
| 	}
 | |
| }
 | |
| 
 | |
| acme.example.com {
 | |
| 	acme_server {
 | |
| 		ca custom-ca
 | |
| 		allow {
 | |
| 			domains host-1.internal.example.com host-2.internal.example.com
 | |
| 		}
 | |
| 	}
 | |
| }
 | |
| ----------
 | |
| {
 | |
| 	"apps": {
 | |
| 		"http": {
 | |
| 			"servers": {
 | |
| 				"srv0": {
 | |
| 					"listen": [
 | |
| 						":443"
 | |
| 					],
 | |
| 					"routes": [
 | |
| 						{
 | |
| 							"match": [
 | |
| 								{
 | |
| 									"host": [
 | |
| 										"acme.example.com"
 | |
| 									]
 | |
| 								}
 | |
| 							],
 | |
| 							"handle": [
 | |
| 								{
 | |
| 									"handler": "subroute",
 | |
| 									"routes": [
 | |
| 										{
 | |
| 											"handle": [
 | |
| 												{
 | |
| 													"ca": "custom-ca",
 | |
| 													"handler": "acme_server",
 | |
| 													"policy": {
 | |
| 														"allow": {
 | |
| 															"domains": [
 | |
| 																"host-1.internal.example.com",
 | |
| 																"host-2.internal.example.com"
 | |
| 															]
 | |
| 														}
 | |
| 													}
 | |
| 												}
 | |
| 											]
 | |
| 										}
 | |
| 									]
 | |
| 								}
 | |
| 							],
 | |
| 							"terminal": true
 | |
| 						}
 | |
| 					]
 | |
| 				}
 | |
| 			}
 | |
| 		},
 | |
| 		"pki": {
 | |
| 			"certificate_authorities": {
 | |
| 				"custom-ca": {
 | |
| 					"name": "Custom CA"
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| }
 |