Gate registration to ALLOWED_REGISTRATION_EMAIL

This commit is contained in:
Willem van den Ende
2026-04-01 21:39:15 +00:00
parent df20c478f4
commit 86f7ffbe94
5 changed files with 62 additions and 16 deletions
+2
View File
@@ -20,6 +20,8 @@ if System.get_env("PHX_SERVER") do
config :firehose, FirehoseWeb.Endpoint, server: true
end
config :firehose, :allowed_registration_email, System.get_env("ALLOWED_REGISTRATION_EMAIL")
if config_env() == :prod do
database_url =
System.get_env("DATABASE_URL") ||
+2
View File
@@ -38,3 +38,5 @@ config :phoenix, :plug_init_mode, :runtime
# Enable helpful, but potentially expensive runtime checks
config :phoenix_live_view,
enable_expensive_runtime_checks: true
config :firehose, :allowed_registration_email, nil