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:
Vinicius Brasil 2022-10-19 09:41:05 -03:00 committed by GitHub
parent 95aafb477d
commit b898642373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,7 +212,12 @@ config :plausible, :selfhost,
config :plausible, PlausibleWeb.Endpoint, config :plausible, PlausibleWeb.Endpoint,
url: [scheme: base_url.scheme, host: base_url.host, path: base_url.path, port: base_url.port], 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 secret_key_base: secret_key_base
maybe_ipv6 = if System.get_env("ECTO_IPV6"), do: [:inet6], else: [] maybe_ipv6 = if System.get_env("ECTO_IPV6"), do: [:inet6], else: []