Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Double maximum header length (#2353)

Vinicius Brasilb8986423735f
diff --git a/config/runtime.exs b/config/runtime.exs
index d5c48af6b0..00002ac7bb 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -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: []