2026-03-21 21:48:56 -05:00
|
|
|
# Copy this file to .env and fill in values before running locally
|
|
|
|
|
# In Docker/Unraid, set these as container environment variables instead
|
|
|
|
|
|
|
|
|
|
# Admin credentials
|
|
|
|
|
ADMIN_USERNAME=admin
|
2026-03-21 22:52:16 -05:00
|
|
|
ADMIN_PASSWORD= # Plain-text password
|
2026-03-21 21:48:56 -05:00
|
|
|
|
|
|
|
|
# JWT
|
|
|
|
|
JWT_SECRET= # Min 32 random chars — generate with: openssl rand -hex 32
|
|
|
|
|
JWT_EXPIRY=8h
|
|
|
|
|
|
2026-03-21 22:52:16 -05:00
|
|
|
# Cookie security — set to true only if behind an HTTPS reverse proxy
|
|
|
|
|
COOKIE_SECURE=false
|
|
|
|
|
|
|
|
|
|
# Database — absolute path avoids Prisma CLI vs runtime resolution mismatch
|
|
|
|
|
# In Docker this maps to the bind-mounted /app/data volume
|
|
|
|
|
DATABASE_URL=file:/app/data/rackmapper.db
|
2026-03-21 21:48:56 -05:00
|
|
|
|
|
|
|
|
# Server
|
|
|
|
|
PORT=3001
|
|
|
|
|
NODE_ENV=development
|