mirror of
https://github.com/plausible/analytics.git
synced 2025-03-14 10:06:38 +00:00
default to invite_only in ce (#4616)
This commit is contained in:
@ -255,8 +255,13 @@ is_selfhost =
|
||||
|> get_var_from_path_or_env("SELFHOST", "true")
|
||||
|> String.to_existing_atom()
|
||||
|
||||
# by default, registration is disabled in self-hosted setups
|
||||
disable_registration_default = to_string(is_selfhost)
|
||||
# by default, only registration from invites is enabled in CE
|
||||
disable_registration_default =
|
||||
if config_env() == :ce do
|
||||
"invite_only"
|
||||
else
|
||||
"false"
|
||||
end
|
||||
|
||||
disable_registration =
|
||||
config_dir
|
||||
|
Reference in New Issue
Block a user