Allow signing up forever without Brevo.

Also allow logins from local IPs (related to #5).
This commit is contained in:
Bruno Bernardino
2024-04-08 20:53:28 +01:00
parent 4f97609ebb
commit 5a85dd224e
8 changed files with 40 additions and 14 deletions

View File

@@ -14,6 +14,18 @@ export async function isSignupAllowed() {
return false;
}
export function isEmailEnabled() {
const areEmailsAllowed = Deno.env.get('CONFIG_ENABLE_EMAILS') === 'true';
return areEmailsAllowed;
}
export function isForeverSignupEnabled() {
const areForeverAccountsEnabled = Deno.env.get('CONFIG_ENABLE_FOREVER_SIGNUP') === 'true';
return areForeverAccountsEnabled;
}
export function getFilesRootPath() {
const configRootPath = Deno.env.get('CONFIG_FILES_ROOT_PATH');