-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy path.env.example
More file actions
49 lines (37 loc) · 1.5 KB
/
.env.example
File metadata and controls
49 lines (37 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# BanManager WebUI - Environment Configuration
# Copy this file to .env and update values as needed
# Server display name (shown in footer)
SERVER_FOOTER_NAME=BanManagement
# Contact email for push notification registration
CONTACT_EMAIL=youremail@example.com
# Database connection (defaults match docker-compose.yml)
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=password
DB_NAME=bm_local_dev
DB_CONNECTION_LIMIT=5
# Security keys (generate unique values for production)
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
ENCRYPTION_KEY=b097b390a68441cc3bb151dd0171f25c3aabc688c50eeb26dc5e13254b333911
SESSION_KEY=a73545a5f08d2906e39a4438014200303f9269f3ade9227525ffb141294f1b62
# Push notification VAPID keys (generate with: npx web-push generate-vapid-keys)
NOTIFICATION_VAPID_PUBLIC_KEY=
NOTIFICATION_VAPID_PRIVATE_KEY=
# Admin user credentials (used by seed script and Cypress tests)
ADMIN_USERNAME=admin@banmanagement.com
ADMIN_PASSWORD=testing
# Server configuration
PORT=3000
LOG_LEVEL=info
# Set to 'production' for production builds
NODE_ENV=development
# File upload configuration
# Maximum upload size (supports human-readable formats: 5MB, 10MB, 1GB, etc.)
UPLOAD_MAX_SIZE=10MB
# Path where uploaded documents are stored
UPLOAD_PATH=./uploads/documents
# Maximum image dimension (width or height) in pixels to prevent pixel bombs
UPLOAD_MAX_DIMENSION=8192
# How long before unattached documents are considered orphaned (in hours)
DOCUMENT_CLEANUP_AGE_HOURS=24