summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt/tls_automation_policies_10.txt
blob: b6832ad1b5afdafb36793eb3d446e1278b646078 (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
# example from issue #4667
{
	auto_https off
}

https://, example.com {
	tls test.crt test.key
	respond "Hello World"
}
----------
{
	"apps": {
		"http": {
			"servers": {
				"srv0": {
					"listen": [
						":443"
					],
					"routes": [
						{
							"handle": [
								{
									"body": "Hello World",
									"handler": "static_response"
								}
							]
						}
					],
					"tls_connection_policies": [
						{
							"certificate_selection": {
								"any_tag": [
									"cert0"
								]
							}
						}
					],
					"automatic_https": {
						"disable": true
					}
				}
			}
		},
		"tls": {
			"certificates": {
				"load_files": [
					{
						"certificate": "test.crt",
						"key": "test.key",
						"tags": [
							"cert0"
						]
					}
				]
			}
		}
	}
}