feat: Increase max_header_value_length to support oauth2-proxy (#5031)

* Increase max_header_value_length to support oauth2-proxy

When using TeslaMate behind an
[OAuth2 Proxy](https://oauth2-proxy.github.io/oauth2-proxy/)
then the default maximum header length is too small.

* Fix formatting of config/runtime.exs
This commit is contained in:
George
2025-12-02 12:53:59 +01:00
committed by GitHub
parent c7b0a0bca4
commit c6cb67f405
+3 -1
View File
@@ -153,7 +153,9 @@ if System.get_env("DATABASE_IPV6") == "true" do
end
config :teslamate, TeslaMateWeb.Endpoint,
http: Util.choose_http_binding_address(),
http:
Util.choose_http_binding_address()
|> Keyword.merge(protocol_options: [max_header_value_length: 16384]),
url: [
host: System.get_env("VIRTUAL_HOST", "localhost"),
path: System.get_env("URL_PATH", "/"),