Skip to content

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

Don't enforce longer SECRET_KEY_BASE than Phoenix (#1441)

Lorenz Bruna4389c99c7a1
diff --git a/config/runtime.exs b/config/runtime.exs
index 103537cd50..e2f0b5b026 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -28,8 +28,8 @@ case secret_key_base do
nil ->
raise "SECRET_KEY_BASE configuration option is required. See https://plausible.io/docs/self-hosting-configuration#server"
- key when byte_size(key) < 64 ->
- raise "SECRET_KEY_BASE must be at least 64 bytes long. See https://plausible.io/docs/self-hosting-configuration#server"
+ key when byte_size(key) < 32 ->
+ raise "SECRET_KEY_BASE must be at least 32 bytes long. See https://plausible.io/docs/self-hosting-configuration#server"
_ ->
nil