Skip to content

Environment Variables

A comprehensive reference of all environment variables supported by DataRamen.

Variable nameAccepted values / description
ALLOWED_ORIGINSCORS configuration. When self-hosting, set this to your application’s hostname
PORTPort on which the DataRamen server will listen
Variable nameAccepted values / description
APP_DB_TYPEmysql or postgres
APP_DB_HOSTURL or hostname of your database
APP_DB_PORTDatabase port
APP_DB_DATABASEDatabase name
APP_DB_USERNAMEDatabase username
APP_DB_PASSWORDDatabase user password
APP_DB_SCHEMADatabase schema (Postgres only)
APP_DB_LOGGINGEnables logging of internal queries executed by DataRamen for its own operations
Variable nameAccepted values / description
SYMM_ENCRYPTION_KEYSecret key used to encrypt the database password (instructions)
JWT_SECRETSecret key used to generate JWT tokens (instructions)
JWT_REFRESH_SECRETSecret key used to generate JWT refresh tokens (instructions)

Updating environment variables via the DataRamen CLI

Section titled “Updating environment variables via the DataRamen CLI”

After installing DataRamen, you can set an environment variable using:

Terminal window
dataramen env set [variable_name] [variable_value]

For example, to update APP_DB_TYPE:

Terminal window
dataramen env set APP_DB_TYPE mysql

MySQL

# for selfhosted services, otherwise leave empty
# ALLOWED_ORIGINS=https://yourdomain.com
# PORT=4466
# Data encryption
SYMM_ENCRYPTION_KEY=<encryption_key>
JWT_SECRET=<jwt_secret_key>
JWT_REFRESH_SECRET=<jwt_refresh_key>
# DB configuration
APP_DB_TYPE=mysql
APP_DB_HOST= # DB host URL
APP_DB_PORT=3306 # DB host port
APP_DB_DATABASE= # DB name
APP_DB_USERNAME= # access username
APP_DB_PASSWORD= # access password
APP_DB_LOGGING=FALSE # optional, set to TRUE to enable internal SQL logging

Postgres

# for selfhosted services, otherwise leave empty
# ALLOWED_ORIGINS=https://yourdomain.com
# PORT=4466
# Data encryption
SYMM_ENCRYPTION_KEY=<encryption_key>
JWT_SECRET=<jwt_secret_key>
JWT_REFRESH_SECRET=<jwt_refresh_key>
# DB configuration
APP_DB_TYPE=postgres
APP_DB_HOST= # DB host URL
APP_DB_PORT=5432 # DB host port
APP_DB_DATABASE= # DB name
APP_DB_USERNAME= # access username
APP_DB_PASSWORD= # access password
APP_DB_SCHEMA= # schema
APP_DB_LOGGING=FALSE # optional, set to TRUE to enable internal SQL logging

SQLite

# for selfhosted services, otherwise leave empty
# ALLOWED_ORIGINS=https://yourdomain.com
# PORT=4466
# Data encryption
SYMM_ENCRYPTION_KEY=<encryption_key>
JWT_SECRET=<jwt_secret_key>
JWT_REFRESH_SECRET=<jwt_refresh_key>
# DB configuration
APP_DB_TYPE=sqlite
APP_DB_DATABASE= # optional, path to the SQLite file; use <home> as a placeholder for the home directory
APP_DB_LOGGING=FALSE # optional, set to TRUE to enable internal SQL logging