Environment Settings

Complete guide to configuring environment variables for self-hosted Teak installations

VariableDescriptionDefaultRequired
POSTGRES_DBPostgreSQL database nameteak_dbYes
POSTGRES_USERPostgreSQL usernameteak_userYes
POSTGRES_PASSWORDPostgreSQL passwordteak_db_passwordYes
BETTER_AUTH_SECRETBetter Auth secret keyNoneYes
BETTER_AUTH_URLBetter Auth URLhttp://localhost:3000Yes
ALLOW_MULTI_USER_REGISTRATIONAllow multiple user registrationfalseNo

Complete .env.example Reference

# PostgreSQL Database Configuration
POSTGRES_DB=teak_db
POSTGRES_USER=teak_user
POSTGRES_PASSWORD=teak_db_password

# Better Auth Configuration
BETTER_AUTH_SECRET=your_secure_secret_here_at_least_32_characters_long
BETTER_AUTH_URL=http://localhost:3000

# Set to true to allow multiple users to register, false (or omit) to allow only one user
ALLOW_MULTI_USER_REGISTRATION=false