summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt/server_names.txt
blob: e43eb8c03a4897e0d21f267c27f260bfe841a688 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
	servers :443 {
		name https
	}

	servers :8000 {
		name app1
	}

	servers :8001 {
		name app2
	}

	servers 123.123.123.123:8002 {
		name bind-server
	}
}

example.com {
}

:8000 {
}

:8001, :8002 {
}

:8002 {
	bind 123.123.123.123 222.222.222.222
}
----------
{
	"apps": {
		"http": {
			"servers": {
				"app1": {
					"listen": [
						":8000"
					]
				},
				"app2": {
					"listen": [
						":8001"
					]
				},
				"bind-server": {
					"listen": [
						"123.123.123.123:8002",
						"222.222.222.222:8002"
					]
				},
				"https": {
					"listen": [
						":443"
					],
					"routes": [
						{
							"match": [
								{
									"host": [
										"example.com"
									]
								}
							],
							"terminal": true
						}
					]
				},
				"srv4": {
					"listen": [
						":8002"
					]
				}
			}
		}
	}
}