default to invite_only in ce (#4616)

This commit is contained in:
ruslandoga
2024-10-04 11:29:13 +07:00
committed by GitHub
parent 6940281d66
commit c8291639e5

View File

@ -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