mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 02:27:19 -04:00 
			
		
		
		
	Previous commit improved the Caddyfile adapter so it doesn't unnecessarily add names to "skip" in "auto_https" when the server is already HTTP-only. This commit updates the tests to reflect that change, while also fixing the Caddyfile formatting in many of the tests. We also print the line number of the divergence between input and formatted version in Caddyfile adapt warnings - very useful for finding initial formatting problems.
		
			
				
	
	
		
			38 lines
		
	
	
		
			521 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			521 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| :8884
 | |
| 
 | |
| reverse_proxy h2c://localhost:8080
 | |
| ----------
 | |
| {
 | |
| 	"apps": {
 | |
| 		"http": {
 | |
| 			"servers": {
 | |
| 				"srv0": {
 | |
| 					"listen": [
 | |
| 						":8884"
 | |
| 					],
 | |
| 					"routes": [
 | |
| 						{
 | |
| 							"handle": [
 | |
| 								{
 | |
| 									"handler": "reverse_proxy",
 | |
| 									"transport": {
 | |
| 										"protocol": "http",
 | |
| 										"versions": [
 | |
| 											"h2c",
 | |
| 											"2"
 | |
| 										]
 | |
| 									},
 | |
| 									"upstreams": [
 | |
| 										{
 | |
| 											"dial": "localhost:8080"
 | |
| 										}
 | |
| 									]
 | |
| 								}
 | |
| 							]
 | |
| 						}
 | |
| 					]
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| } |