mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 23:01:06 +00:00 
			
		
		
		
	
		
			
	
	
		
			60 lines
		
	
	
	
		
			872 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			60 lines
		
	
	
	
		
			872 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
									servers {
							 | 
						||
| 
								 | 
							
										trusted_proxies_unix
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								example.com {
							 | 
						||
| 
								 | 
							
									reverse_proxy https://local:8080
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								----------
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
									"apps": {
							 | 
						||
| 
								 | 
							
										"http": {
							 | 
						||
| 
								 | 
							
											"servers": {
							 | 
						||
| 
								 | 
							
												"srv0": {
							 | 
						||
| 
								 | 
							
													"listen": [
							 | 
						||
| 
								 | 
							
														":443"
							 | 
						||
| 
								 | 
							
													],
							 | 
						||
| 
								 | 
							
													"routes": [
							 | 
						||
| 
								 | 
							
														{
							 | 
						||
| 
								 | 
							
															"match": [
							 | 
						||
| 
								 | 
							
																{
							 | 
						||
| 
								 | 
							
																	"host": [
							 | 
						||
| 
								 | 
							
																		"example.com"
							 | 
						||
| 
								 | 
							
																	]
							 | 
						||
| 
								 | 
							
																}
							 | 
						||
| 
								 | 
							
															],
							 | 
						||
| 
								 | 
							
															"handle": [
							 | 
						||
| 
								 | 
							
																{
							 | 
						||
| 
								 | 
							
																	"handler": "subroute",
							 | 
						||
| 
								 | 
							
																	"routes": [
							 | 
						||
| 
								 | 
							
																		{
							 | 
						||
| 
								 | 
							
																			"handle": [
							 | 
						||
| 
								 | 
							
																				{
							 | 
						||
| 
								 | 
							
																					"handler": "reverse_proxy",
							 | 
						||
| 
								 | 
							
																					"transport": {
							 | 
						||
| 
								 | 
							
																						"protocol": "http",
							 | 
						||
| 
								 | 
							
																						"tls": {}
							 | 
						||
| 
								 | 
							
																					},
							 | 
						||
| 
								 | 
							
																					"upstreams": [
							 | 
						||
| 
								 | 
							
																						{
							 | 
						||
| 
								 | 
							
																							"dial": "local:8080"
							 | 
						||
| 
								 | 
							
																						}
							 | 
						||
| 
								 | 
							
																					]
							 | 
						||
| 
								 | 
							
																				}
							 | 
						||
| 
								 | 
							
																			]
							 | 
						||
| 
								 | 
							
																		}
							 | 
						||
| 
								 | 
							
																	]
							 | 
						||
| 
								 | 
							
																}
							 | 
						||
| 
								 | 
							
															],
							 | 
						||
| 
								 | 
							
															"terminal": true
							 | 
						||
| 
								 | 
							
														}
							 | 
						||
| 
								 | 
							
													],
							 | 
						||
| 
								 | 
							
													"trusted_proxies_unix": true
							 | 
						||
| 
								 | 
							
												}
							 | 
						||
| 
								 | 
							
											}
							 | 
						||
| 
								 | 
							
										}
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 |