mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-30 10:12:45 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			55 lines
		
	
	
		
			851 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			851 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| :8884
 | |
| 
 | |
| reverse_proxy h2c://localhost:8080
 | |
| 
 | |
| reverse_proxy unix+h2c//run/app.sock
 | |
| ----------
 | |
| {
 | |
| 	"apps": {
 | |
| 		"http": {
 | |
| 			"servers": {
 | |
| 				"srv0": {
 | |
| 					"listen": [
 | |
| 						":8884"
 | |
| 					],
 | |
| 					"routes": [
 | |
| 						{
 | |
| 							"handle": [
 | |
| 								{
 | |
| 									"handler": "reverse_proxy",
 | |
| 									"transport": {
 | |
| 										"protocol": "http",
 | |
| 										"versions": [
 | |
| 											"h2c",
 | |
| 											"2"
 | |
| 										]
 | |
| 									},
 | |
| 									"upstreams": [
 | |
| 										{
 | |
| 											"dial": "localhost:8080"
 | |
| 										}
 | |
| 									]
 | |
| 								},
 | |
| 								{
 | |
| 									"handler": "reverse_proxy",
 | |
| 									"transport": {
 | |
| 										"protocol": "http",
 | |
| 										"versions": [
 | |
| 											"h2c",
 | |
| 											"2"
 | |
| 										]
 | |
| 									},
 | |
| 									"upstreams": [
 | |
| 										{
 | |
| 											"dial": "unix//run/app.sock"
 | |
| 										}
 | |
| 									]
 | |
| 								}
 | |
| 							]
 | |
| 						}
 | |
| 					]
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| } |