summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2020-10-30 14:05:21 -0400
committerGitHub <noreply@github.com>2020-10-30 12:05:21 -0600
commitb66099379d065ec3340cbe147f65dcf0a39e8e52 (patch)
treef1625b31777c34c7be5afb743a412db1c0dc5381 /caddytest/integration/caddyfile_adapt
parentc9fdff9976da38c650a51cd3fb4f2667853ff627 (diff)
reverseproxy: Add max_idle_conns_per_host; fix godocs (#3829)
Diffstat (limited to 'caddytest/integration/caddyfile_adapt')
-rw-r--r--caddytest/integration/caddyfile_adapt/reverse_proxy_options.txt (renamed from caddytest/integration/caddyfile_adapt/reverse_proxy_h2c.txt)8
1 files changed, 7 insertions, 1 deletions
diff --git a/caddytest/integration/caddyfile_adapt/reverse_proxy_h2c.txt b/caddytest/integration/caddyfile_adapt/reverse_proxy_options.txt
index 9f3bc93..423bd8f 100644
--- a/caddytest/integration/caddyfile_adapt/reverse_proxy_h2c.txt
+++ b/caddytest/integration/caddyfile_adapt/reverse_proxy_options.txt
@@ -6,11 +6,15 @@ https://example.com {
header_up X-Forwarded-For {remote}
header_up X-Forwarded-Port {server_port}
header_up X-Forwarded-Proto "http"
+
+ buffer_requests
+
transport http {
versions h2c 2
compression off
+ max_conns_per_host 5
+ max_idle_conns_per_host 2
}
- buffer_requests
}
}
@@ -64,6 +68,8 @@ https://example.com {
},
"transport": {
"compression": false,
+ "max_conns_per_host": 5,
+ "max_idle_conns_per_host": 2,
"protocol": "http",
"versions": [
"h2c",