mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-18 03:16:21 +02:00
🔓 Add config to secure instance from unauth users (#559)
This commit is contained in:
parent
e65c87bf04
commit
1b38a3cf76
16 changed files with 194 additions and 104 deletions
15
apps/web/declarations/environment.d.ts
vendored
15
apps/web/declarations/environment.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue