Skip to content

Backend (server)

ehennestad edited this page Mar 10, 2023 · 3 revisions

Environment variables

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

Sending emails during development

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

Clone this wiki locally