Skip to main content

Configuration

Configure WeGrowHQ using environment variables when self-hosting.

Core settings

VariableDescriptionDefault
APP_URLPublic URL of your instancehttp://localhost:3000
DATABASE_URLPostgreSQL connection stringembedded SQLite
SECRET_KEYSession signing key(required in production)

Email (optional)

VariableDescription
SMTP_HOSTSMTP server hostname
SMTP_PORTSMTP port
SMTP_USERSMTP username
SMTP_PASSWORDSMTP password
EMAIL_FROMDefault sender address

Example .env

APP_URL=https://pm.yourcompany.com
SECRET_KEY=change-me-to-a-long-random-string
DATABASE_URL=postgres://user:pass@db:5432/wegrowhq
tip

Never commit secrets to git. Use your orchestrator's secret management in production.