Debian Codegraph @

caddytest/integration/caddyfile_adapt/global_server_options_single.caddyfiletest

raw
1 {
2 servers {
3 listener_wrappers {
4 http_redirect
5 tls
6 }
7 timeouts {
8 read_body 30s
9 read_header 30s
10 write 30s
11 idle 30s
12 }
13 max_header_size 100MB
14 enable_full_duplex
15 log_credentials
16 protocols h1 h2 h2c h3
17 strict_sni_host
18 trusted_proxies static private_ranges
19 client_ip_headers Custom-Real-Client-IP X-Forwarded-For
20 client_ip_headers A-Third-One
21 keepalive_interval 20s
22 keepalive_idle 20s
23 keepalive_count 10
24 0rtt off
25 }
26 }
27
28 foo.com {
29 }
30
31 ----------
32 {
33 "apps": {
34 "http": {
35 "servers": {
36 "srv0": {
37 "listen": [
38 ":443"
39 ],
40 "listener_wrappers": [
41 {
42 "wrapper": "http_redirect"
43 },
44 {
45 "wrapper": "tls"
46 }
47 ],
48 "read_timeout": 30000000000,
49 "read_header_timeout": 30000000000,
50 "write_timeout": 30000000000,
51 "idle_timeout": 30000000000,
52 "keepalive_interval": 20000000000,
53 "keepalive_idle": 20000000000,
54 "keepalive_count": 10,
55 "max_header_bytes": 100000000,
56 "enable_full_duplex": true,
57 "routes": [
58 {
59 "match": [
60 {
61 "host": [
62 "foo.com"
63 ]
64 }
65 ],
66 "terminal": true
67 }
68 ],
69 "strict_sni_host": true,
70 "trusted_proxies": {
71 "ranges": [
72 "192.168.0.0/16",
73 "172.16.0.0/12",
74 "10.0.0.0/8",
75 "127.0.0.1/8",
76 "fd00::/8",
77 "::1"
78 ],
79 "source": "static"
80 },
81 "client_ip_headers": [
82 "Custom-Real-Client-IP",
83 "X-Forwarded-For",
84 "A-Third-One"
85 ],
86 "logs": {
87 "should_log_credentials": true
88 },
89 "protocols": [
90 "h1",
91 "h2",
92 "h2c",
93 "h3"
94 ],
95 "allow_0rtt": false
96 }
97 }
98 }
99 }
100 }