🔓 Add config to secure instance from unauth users (#559)

This commit is contained in:
Luke Vella 2023-03-14 16:48:16 +00:00 committed by GitHub
parent e65c87bf04
commit 1b38a3cf76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 194 additions and 104 deletions

View file

@ -10,9 +10,9 @@ declare global {
*/
NODE_ENV: "development" | "production";
/**
* Can be "false" or a relative path eg. "/new"
* Set to "true" to take users straight to app instead of landing page
*/
LANDING_PAGE: string;
DISABLE_LANDING_PAGE?: string;
/**
* Must be 32 characters long
*/
@ -57,6 +57,17 @@ declare global {
* Port number of the SMTP server
*/
SMTP_PORT: string;
/**
* Comma separated list of email addresses that are allowed to register and login.
* If not set, all emails are allowed. Wildcard characters are supported.
*
* Example: "user@example.com, *@example.com, *@*.example.com"
*/
ALLOWED_EMAILS?: string;
/**
* "true" to require authentication for creating new polls and accessing admin pages
*/
AUTH_REQUIRED?: string;
}
}
}