summaryrefslogtreecommitdiff
path: root/caddytest/integration
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2022-08-12 17:09:18 -0400
committerGitHub <noreply@github.com>2022-08-12 17:09:18 -0400
commite2a5e2293ab0b06e33445a1243f36cd5def1de42 (patch)
treeb1a4913316a7543f4207dc543d76f0b29ee33663 /caddytest/integration
parentf5dce84a7028d1b116db7fead27ff8b2506baf78 (diff)
reverseproxy: Add `unix+h2c` Caddyfile network shortcut (#4953)
Diffstat (limited to 'caddytest/integration')
-rw-r--r--caddytest/integration/caddyfile_adapt/reverse_proxy_h2c_shorthand.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/reverse_proxy_h2c_shorthand.txt b/caddytest/integration/caddyfile_adapt/reverse_proxy_h2c_shorthand.txt
index 75ce960..5939467 100644
--- a/caddytest/integration/caddyfile_adapt/reverse_proxy_h2c_shorthand.txt
+++ b/caddytest/integration/caddyfile_adapt/reverse_proxy_h2c_shorthand.txt
@@ -1,6 +1,8 @@
:8884
reverse_proxy h2c://localhost:8080
+
+reverse_proxy unix+h2c//run/app.sock
----------
{
"apps": {
@@ -27,6 +29,21 @@ reverse_proxy h2c://localhost:8080
"dial": "localhost:8080"
}
]
+ },
+ {
+ "handler": "reverse_proxy",
+ "transport": {
+ "protocol": "http",
+ "versions": [
+ "h2c",
+ "2"
+ ]
+ },
+ "upstreams": [
+ {
+ "dial": "unix//run/app.sock"
+ }
+ ]
}
]
}