Skip to main content

Configurations

Datalus is configured with the datalus.conf file in the project root. When this file is changed, the server must be restarted for changes to take effect. This is simply an env file, so variables may also be defined directly in the environment. Below are the available configuration options.

NameDescriptionTypeRequiredExample
DB_HOSTURL of Datalus DatabasestringRequiredmydb.datalus.com
DB_PORTPort of Datalus DatabasenumberRequired5432
DB_USERNAMEDatalus Database UsernamestringRequiredpostgres
DB_PASSWORDDatalus Database Password CredentialsstringRequiredhunter2
DB_NAMEDatabase name in Postgres server that will be usedstringRequireddatalus
DB_SCHEMASchema to store all Datalus tables instringRequiredpublic
DB_REJECT_UNAUTHORIZEDReject connection to Datalus DB if cannot match against CAsbooleanRequiredtrue
DB_CA_PATHPath to file with Database CAsboolean
Required if DB_REJECT_UNAUTHORIZED is true
./global-bundle.pem
STORAGE_MODEPath to file with Database CAsaws | dbRequiredaws
VM_MODEPath to file with Database CAsaws | localRequiredaws
LLM_BATCH_ROW_LIMITMax rows to generate per LLM callnumberRequired100
OPENAI_API_KEYOpenAI API KeystringRequiredsk-proj-AdPFWsas0*******
AWS_ACCESS_KEYAWS AIM Access Keystring
Required for AWS Storage Mode or VM Mode
97AVMMF8C9E*******
AWS_SECRET_ACCESS_KEYAWS AIM Secret Access Keystring
Required for AWS Storage Mode or VM Mode
7A105WhbfrBpQTxw*******
AWS_REGIONAWS Region for Resourcesstring
Required for AWS Storage Mode or VM Mode
us-east-1
AWS_BUCKETAWS Bucket Namestring
Required for AWS Storage Mode
us-east-1
AWS_ECS_SUBNETSComma separated list of subnets used for ECS containersstring
Required for AWS VM Mode
subnet-123,subnet-345,subnet-abc,subnet-def
AWS_ECS_SECURITY_GROUPSComma separated list of security groups used for ECS containersstring
Required for AWS VM Mode
sg-123,sg-345,sg-abc
NODE_ENVEnvironment mode for Node.js. Recommended to keep as productionproduction | developmentRequiredproduction
LOCAL_GENERATOR_IMAGE_NAMEDocker name of generator imagestring
Required for Local VM Mode
generators:latest
SHARD_OUTPUT_PREVIEW_LIMITMax rows to preview per generated shardnumberRequired50
AUTH_ACCESS_TOKEN_PRIVATE_KEYBase64-encoded private key for auth access tokensstringRequiredA very long string that looks like this: LS0tWRV****ktLS0tLQ==
AUTH_ACCESS_TOKEN_PUBLIC_KEYBase64-encoded public key for auth access tokensstringRequiredA very long string that looks like this: LS0tWRV****ktLS0tLQ==
AUTH_REFRESH_TOKEN_PRIVATE_KEYBase64-encoded private key for auth refresh tokensstringRequiredA very long string that looks like this: LS0tWRV****ktLS0tLQ==
AUTH_REFRESH_TOKEN_PUBLIC_KEYBase64-encoded public key for auth refresh tokensstringRequiredA very long string that looks like this: LS0tWRV****ktLS0tLQ==
AUTH_ACCESS_TOKEN_TTLTime in ms until an issued access token expiresnumberRequired60000
AUTH_REFRESH_TOKEN_TTLTime in ms until an issued refresh token expiresnumberRequired120000
CORS_ORIGINCORS Origin DomainstringRequiredmydomain.com
VITE_API_URLAPI URL that web client fetchesstringRequiredmydomain.com
COOKIE_DOMAINDomain that cookies are attached tostringRequiredmydomain.com
TZServer TimezonestringRequiredUTC
ENABLE_SIGNUPSAllow new sign ups on Datalus instancebooleanRequiredfalse