aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddytest
diff options
context:
space:
mode:
authorFred Cox <[email protected]>2023-10-11 09:42:40 +0100
committerGitHub <[email protected]>2023-10-11 04:42:40 -0400
commitb245ecd325428966ac4e4c208e268967d0e0cb83 (patch)
tree207f0937ad437e09542bf592d081ff182c62f783 /caddytest
parent2a6859a5e46227473220c653668fa9da9f00b14e (diff)
downloadcaddy-b245ecd325428966ac4e4c208e268967d0e0cb83.tar.gz
caddy-b245ecd325428966ac4e4c208e268967d0e0cb83.zip
reverseproxy: fix parsing Caddyfile fails for unlimited request/response buffers (#5828)
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/reverse_proxy_buffers.txt58
1 files changed, 58 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/reverse_proxy_buffers.txt b/caddytest/integration/caddyfile_adapt/reverse_proxy_buffers.txt
new file mode 100644
index 000000000..317899470
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/reverse_proxy_buffers.txt
@@ -0,0 +1,58 @@
+https://example.com {
+ reverse_proxy https://localhost:54321 {
+ request_buffers unlimited
+ response_buffers unlimited
+ }
+}
+
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":443"
+ ],
+ "routes": [
+ {
+ "match": [
+ {
+ "host": [
+ "example.com"
+ ]
+ }
+ ],
+ "handle": [
+ {
+ "handler": "subroute",
+ "routes": [
+ {
+ "handle": [
+ {
+ "handler": "reverse_proxy",
+ "request_buffers": -1,
+ "response_buffers": -1,
+ "transport": {
+ "protocol": "http",
+ "tls": {}
+ },
+ "upstreams": [
+ {
+ "dial": "localhost:54321"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "terminal": true
+ }
+ ]
+ }
+ }
+ }
+ }
+}