mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
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:
+3
-1
@@ -153,7 +153,9 @@ if System.get_env("DATABASE_IPV6") == "true" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
config :teslamate, TeslaMateWeb.Endpoint,
|
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: [
|
url: [
|
||||||
host: System.get_env("VIRTUAL_HOST", "localhost"),
|
host: System.get_env("VIRTUAL_HOST", "localhost"),
|
||||||
path: System.get_env("URL_PATH", "/"),
|
path: System.get_env("URL_PATH", "/"),
|
||||||
|
|||||||
Reference in New Issue
Block a user