Debian Codegraph @

caddytest/integration/caddyfile_adapt/reverse_proxy_stream_buffer_size.caddyfiletest

raw
1 https://example.com {
2 reverse_proxy https://localhost:54321 {
3 stream_buffer_size 8KB
4 }
5 }
6
7 ----------
8 {
9 "apps": {
10 "http": {
11 "servers": {
12 "srv0": {
13 "listen": [
14 ":443"
15 ],
16 "routes": [
17 {
18 "match": [
19 {
20 "host": [
21 "example.com"
22 ]
23 }
24 ],
25 "handle": [
26 {
27 "handler": "subroute",
28 "routes": [
29 {
30 "handle": [
31 {
32 "handler": "reverse_proxy",
33 "stream_buffer_size": 8000,
34 "transport": {
35 "protocol": "http",
36 "tls": {}
37 },
38 "upstreams": [
39 {
40 "dial": "localhost:54321"
41 }
42 ]
43 }
44 ]
45 }
46 ]
47 }
48 ],
49 "terminal": true
50 }
51 ]
52 }
53 }
54 }
55 }
56 }