mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 01:54:34 +03:00
Double maximum header length (#2353)
This commit makes the permitted header length more permissive, 8,192 bytes, doubling the Phoenix default. Related to https://github.com/4lejandrito/next-plausible/issues/67
This commit is contained in:
parent
95aafb477d
commit
b898642373
@ -212,7 +212,12 @@ config :plausible, :selfhost,
|
||||
|
||||
config :plausible, PlausibleWeb.Endpoint,
|
||||
url: [scheme: base_url.scheme, host: base_url.host, path: base_url.path, port: base_url.port],
|
||||
http: [port: port, ip: listen_ip, transport_options: [max_connections: :infinity]],
|
||||
http: [
|
||||
port: port,
|
||||
ip: listen_ip,
|
||||
transport_options: [max_connections: :infinity],
|
||||
protocol_options: [max_request_line_length: 8192, max_header_value_length: 8192]
|
||||
],
|
||||
secret_key_base: secret_key_base
|
||||
|
||||
maybe_ipv6 = if System.get_env("ECTO_IPV6"), do: [:inet6], else: []
|
||||
|
Loading…
Reference in New Issue
Block a user