summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt/tls_automation_policies_9.txt
blob: bd82e96c1cf81f8fd987a5cc3ad0f44a474b7770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# example from issue #4640
http://foo:8447, http://127.0.0.1:8447 {
	reverse_proxy 127.0.0.1:8080
}
----------
{
	"apps": {
		"http": {
			"servers": {
				"srv0": {
					"listen": [
						":8447"
					],
					"routes": [
						{
							"match": [
								{
									"host": [
										"foo",
										"127.0.0.1"
									]
								}
							],
							"handle": [
								{
									"handler": "subroute",
									"routes": [
										{
											"handle": [
												{
													"handler": "reverse_proxy",
													"upstreams": [
														{
															"dial": "127.0.0.1:8080"
														}
													]
												}
											]
										}
									]
								}
							],
							"terminal": true
						}
					],
					"automatic_https": {
						"skip": [
							"foo",
							"127.0.0.1"
						]
					}
				}
			}
		}
	}
}