Set extra fields
This commit is contained in:
committed by
Donal McBreen
parent
42fdbd98cb
commit
268ec1c6e0
@@ -77,7 +77,17 @@ proxy:
|
|||||||
path: /health
|
path: /health
|
||||||
timeout: 3
|
timeout: 3
|
||||||
|
|
||||||
# Max Request Body Size
|
# Buffering
|
||||||
#
|
#
|
||||||
# The maximum request size in bytes that the proxy will accept, defaults to 1GB
|
# Whether to buffer request and response bodies in the proxy
|
||||||
max_request_body_size: 40_000_000
|
#
|
||||||
|
# By default buffering is enabled with a max request body size of 1GB and no limit
|
||||||
|
# for response size.
|
||||||
|
#
|
||||||
|
# You can also set the memory limit for buffering, which defaults to 1MB, anything
|
||||||
|
# larger than that is written to disk.
|
||||||
|
buffering:
|
||||||
|
enabled: true
|
||||||
|
max_request_body: 40_000_000
|
||||||
|
max_response_body: 0
|
||||||
|
memory: 2_000_000
|
||||||
|
|||||||
@@ -44,7 +44,11 @@ class Kamal::Configuration::Proxy
|
|||||||
"health-check-interval": proxy_config.dig("health_check", "interval"),
|
"health-check-interval": proxy_config.dig("health_check", "interval"),
|
||||||
"health-check-timeout": proxy_config.dig("health_check", "timeout"),
|
"health-check-timeout": proxy_config.dig("health_check", "timeout"),
|
||||||
"health-check-path": proxy_config.dig("health_check", "path"),
|
"health-check-path": proxy_config.dig("health_check", "path"),
|
||||||
"target-timeout": proxy_config["response_timeout"]
|
"target-timeout": proxy_config["response_timeout"],
|
||||||
|
"buffer": proxy_config.fetch("buffer", { enabled: true }).fetch("enabled", true),
|
||||||
|
"buffer-memory": proxy_config.dig("buffer", "memory"),
|
||||||
|
"max-request-body": proxy_config.dig("buffer", "max_request_body"),
|
||||||
|
"max-response-body": proxy_config.dig("buffer", "max_response_body")
|
||||||
}.compact
|
}.compact
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user