-
Notifications
You must be signed in to change notification settings - Fork 2
Backend (server)
ehennestad edited this page Mar 10, 2023
·
3 revisions
The backend server require the following environment variables to be set:
- RELAY_HOST (production only)
- EMAIL_ADDRESS_SENDER (production only)
- EMAIL_ADDRESS_CURATION_SUPPORT (production only)
- OIDC_CLIENT_SECRET (see also OIDC client)
To set environment variables locally
Note for mac users: if you are using zsh ("Z shell") and not bash, use .zshrc
instead of .bash_profile
In order to send emails during development, it is possible to make a copy of the mail_credentials_template.js, rename it to mail_credentials.js
and add your preferred email username and password. Note: the mail_credentials.js
is added in the .gitignore, but take extra care that you don't accidentally commit this file to GitHub.
Note: This could potentially also be changed to use environment variables instead