-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy path.env.example
More file actions
60 lines (48 loc) · 1.86 KB
/
.env.example
File metadata and controls
60 lines (48 loc) · 1.86 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
50
51
52
53
54
55
56
57
58
59
60
# BanManager WebUI - Environment Configuration
# Copy this file to .env and update values as needed.
#
# You usually don't need to fill this in by hand:
# - Docker: the entrypoint generates missing keys automatically.
# - CLI: run `npx bmwebui setup` for an interactive wizard.
# - Web: start the server with no keys and finish setup at http://your-host:3000/setup
#
# To verify your configuration at any time:
# npx bmwebui doctor
# 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
# Leave blank to have setup (CLI/Docker/web installer) generate fresh values for you.
# To generate manually: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# These MUST be unique 64-character hex strings in production.
ENCRYPTION_KEY=
SESSION_KEY=
# Push notification VAPID keys
# Leave blank to have setup generate them, or run: 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