Environment Variables
Configuration keys for connecting services.
Copy `.env.example` to `.env` in your root directory.
Database & Redis#
bash
# PostgreSQL Connection String DATABASE_URL="postgresql://user:pass@localhost:5432/oms_db" # Redis for Job Queues REDIS_HOST="127.0.0.1" REDIS_PORT="6379" REDIS_PASSWORD=""
Authentication (NextAuth)#
bash
# Generate via 'openssl rand -base64 32' NEXTAUTH_SECRET="super-secret-key" # Your domain URL NEXTAUTH_URL="https://oms.yourbrand.com"
External Services (Optional)#
bash
# AWS S3 for Image Uploads AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" AWS_REGION="us-east-1" AWS_BUCKET_NAME="" # SMTP for Emails SMTP_HOST="smtp.postmarkapp.com" SMTP_PORT="587" SMTP_USER="" SMTP_PASS=""
Security
Never commit your
.env file to Git.