diff options
author | Aziz Rmadi <[email protected]> | 2024-04-23 08:12:57 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-23 07:12:57 -0600 |
commit | 868af6a062290b82fb1d4d70697739974e814e50 (patch) | |
tree | 2f73a23f2b7f2157f6f8002456cc027ac94e85d9 /caddytest | |
parent | d2668cdbb06da8e2c96b072ee589465c20dd8118 (diff) | |
download | caddy-868af6a062290b82fb1d4d70697739974e814e50.tar.gz caddy-868af6a062290b82fb1d4d70697739974e814e50.zip |
reverse_proxy: Add grace_period for SRV upstreams to Caddyfile (#6264)
Diffstat (limited to 'caddytest')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/reverse_proxy_dynamic_upstreams_grace_period.caddyfiletest | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/reverse_proxy_dynamic_upstreams_grace_period.caddyfiletest b/caddytest/integration/caddyfile_adapt/reverse_proxy_dynamic_upstreams_grace_period.caddyfiletest new file mode 100644 index 000000000..0389b2f12 --- /dev/null +++ b/caddytest/integration/caddyfile_adapt/reverse_proxy_dynamic_upstreams_grace_period.caddyfiletest @@ -0,0 +1,38 @@ +:8884 { + reverse_proxy { + dynamic srv { + name foo + refresh 5m + grace_period 5s + } + } +} +---------- +{ + "apps": { + "http": { + "servers": { + "srv0": { + "listen": [ + ":8884" + ], + "routes": [ + { + "handle": [ + { + "dynamic_upstreams": { + "grace_period": 5000000000, + "name": "foo", + "refresh": 300000000000, + "source": "srv" + }, + "handler": "reverse_proxy" + } + ] + } + ] + } + } + } + } +}
\ No newline at end of file |