Merge pull request #1551 from ACPK/kamal-proxy-path-prefix
Add support for kamal-proxy's path-prefix
This commit is contained in:
@@ -69,6 +69,17 @@ proxy:
|
||||
# How long to wait for requests to complete before timing out, defaults to 30 seconds:
|
||||
response_timeout: 10
|
||||
|
||||
# Path-based routing
|
||||
#
|
||||
# For applications that split their traffic to different services based on the request path,
|
||||
# you can use path-based routing to mount services under different path prefixes.
|
||||
path_prefix: '/api'
|
||||
# By default, the path prefix will be stripped from the request before it is forwarded upstream.
|
||||
# So in the example above, a request to /api/users/123 will be forwarded to web-1 as /users/123.
|
||||
# To instead forward the request with the original path (including the prefix),
|
||||
# specify --strip-path-prefix=false
|
||||
strip_path_prefix: false
|
||||
|
||||
# Healthcheck
|
||||
#
|
||||
# When deploying, the proxy will by default hit `/up` once every second until we hit
|
||||
|
||||
Reference in New Issue
Block a user