-
Notifications
You must be signed in to change notification settings - Fork 0
Backend
Daniel S. Billing edited this page Jan 26, 2025
·
1 revision
For the backend to be able to run in all environments these environment variables need to be set:
-
ENV
The following values are allowed:
-
dev
orlocal
for developers and local environment -
staging
for test environment that is set up like prod but only used for testing -
production
orprod
for your production environment
-
-
JWT_PUBLIC_KEY
Further details needed
-
JWT_PRIVATE_KEY
Further details needed
-
PORTAL_URL - ex.
https://portal.lanms.net
The URL for the frontend where that is hosted, is used for links in emails.
-
OTP_SECRET_KEY
This should be a Base64 string.
- CODE_BUILD
- DEBUG
- DB_HOST
- DB_USERNAME
- DB_PASSWORD
- DB_PORT
- DB_DIALECT
- DB_NAME
- JWT_ALGORITHM
- ACCESS_TOKEN_EXPIRE_MINUTES
- REFRESH_TOKEN_EXPIRE_MINUTES
- FROM_EMAIL
- SENTRY_DSN
- SENDGRID_API_KEY
- POSTMARK_API_KEY
- PASSWORD_MIN_LENGTH
- MAX_IMAGE_SIZE_KB
- MAX_FILE_SIZE_KB
- SUPER_ADMINS