summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt/global_server_options_single.txt
blob: 5fb6739295460a792b44d70d535b9484b0b52279 (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
{
	servers {
		listener_wrappers {
			http_redirect
			tls
		}
		timeouts {
			read_body 30s
			read_header 30s
			write 30s
			idle 30s
		}
		max_header_size 100MB
		log_credentials
		protocols h1 h2 h2c h3
		strict_sni_host
	}
}

foo.com {
}

----------
{
	"apps": {
		"http": {
			"servers": {
				"srv0": {
					"listen": [
						":443"
					],
					"listener_wrappers": [
						{
							"wrapper": "http_redirect"
						},
						{
							"wrapper": "tls"
						}
					],
					"read_timeout": 30000000000,
					"read_header_timeout": 30000000000,
					"write_timeout": 30000000000,
					"idle_timeout": 30000000000,
					"max_header_bytes": 100000000,
					"routes": [
						{
							"match": [
								{
									"host": [
										"foo.com"
									]
								}
							],
							"terminal": true
						}
					],
					"strict_sni_host": true,
					"logs": {
						"should_log_credentials": true
					},
					"protocols": [
						"h1",
						"h2",
						"h2c",
						"h3"
					]
				}
			}
		}
	}
}