Configuration
Configure WeGrowHQ using environment variables when self-hosting.
Core settings
| Variable | Description | Default |
|---|---|---|
APP_URL | Public URL of your instance | http://localhost:3000 |
DATABASE_URL | PostgreSQL connection string | embedded SQLite |
SECRET_KEY | Session signing key | (required in production) |
Email (optional)
| Variable | Description |
|---|---|
SMTP_HOST | SMTP server hostname |
SMTP_PORT | SMTP port |
SMTP_USER | SMTP username |
SMTP_PASSWORD | SMTP password |
EMAIL_FROM | Default 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.