Skip to content

Commit

Permalink
Added email config from env
Browse files Browse the repository at this point in the history
  • Loading branch information
lumandra committed Sep 20, 2023
1 parent 63e00bd commit be626b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ const DASH_USER_PASSWORD = process.env.USER_PASS || config.extraConfi

const SITE_TEMPLATES = process.env.SITE_TEMPLATES || config.extraConfig.siteTemplates;

const VERIFY_USER_EMAIL = process.env.VERIFY_USER_EMAIL || parseConfig.verifyUserEmails;
const PREVENT_LOGIN_WITH_UNVERIFIED_EMAIL = process.env.PREVENT_LOGIN_WITH_UNVERIFIED_EMAIL || parseConfig.preventLoginWithUnverifiedEmail;


let emailOptions = parseConfig.emailAdapter.options;
emailOptions.fromAddress = process.env.FROM_ADDRESS || emailOptions.fromAddress;
Expand All @@ -46,6 +49,8 @@ Object.assign(parseConfig, {
cloud: "./cloud/main",
databaseURI: URL_DB,
maxUploadSize: MAX_UPLOAD_SIZE,
verifyUserEmails: VERIFY_USER_EMAIL,
preventLoginWithUnverifiedEmail: PREVENT_LOGIN_WITH_UNVERIFIED_EMAIL,

serverURL: URL_SERVER,
publicServerURL: URL_SERVER,
Expand Down

0 comments on commit be626b8

Please sign in to comment.