summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorKiss Károly Pál <kiss.karoly@rackhost.hu>2022-06-20 19:51:42 +0200
committerGitHub <noreply@github.com>2022-06-20 11:51:42 -0600
commitb6e96fa3c5fcb7601142b8ad569793a1b9c2c5eb (patch)
tree3b4e61cab7802bc66f35c7f524b129569f7fbfa2 /caddytest
parent56013934a4544d092426a1437763dff198560141 (diff)
reverseproxy: Skip TLS for certain configured ports (#4843)
* Make reverse proxy TLS server name replaceable for SNI upstreams. * Reverted previous TLS server name replacement, and implemented thread safe version. * Move TLS servername replacement into it's own function * Moved SNI servername replacement into httptransport. * Solve issue when dynamic upstreams use wrong protocol upstream. * Revert previous commit. Old commit was: Solve issue when dynamic upstreams use wrong protocol upstream. Id: 3c9806ccb63e66bdcac8e1ed4520c9d135cb011d * Added SkipTLSPorts option to http transport. * Fix typo in test config file. * Rename config option as suggested by Matt Co-authored-by: Matt Holt <mholt@users.noreply.github.com> * Update code to match renamed config option. * Fix typo in config option name. * Fix another typo that I missed. * Tests not completing because of apparent wrong ordering of options. Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/reverse_proxy_options.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/reverse_proxy_options.txt b/caddytest/integration/caddyfile_adapt/reverse_proxy_options.txt
index 29f6d23..ea740f6 100644
--- a/caddytest/integration/caddyfile_adapt/reverse_proxy_options.txt
+++ b/caddytest/integration/caddyfile_adapt/reverse_proxy_options.txt
@@ -25,6 +25,7 @@ https://example.com {
keepalive_idle_conns_per_host 2
keepalive_interval 30s
renegotiation freely
+ except_ports 8181 8182
}
}
}
@@ -93,6 +94,10 @@ https://example.com {
},
"response_header_timeout": 8000000000,
"tls": {
+ "except_ports": [
+ "8181",
+ "8182"
+ ],
"renegotiation": "freely"
},
"versions": [