18 lines
533 B
Plaintext
18 lines
533 B
Plaintext
|
|
# 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
|
||
|
|
ADMIN_PASSWORD_HASH= # Generate with: npx ts-node scripts/hashPassword.ts yourpassword
|
||
|
|
|
||
|
|
# JWT
|
||
|
|
JWT_SECRET= # Min 32 random chars — generate with: openssl rand -hex 32
|
||
|
|
JWT_EXPIRY=8h
|
||
|
|
|
||
|
|
# Database (relative path inside container; bind-mounted to ./data/)
|
||
|
|
DATABASE_URL=file:./data/rackmapper.db
|
||
|
|
|
||
|
|
# Server
|
||
|
|
PORT=3001
|
||
|
|
NODE_ENV=development
|