bb44b143ec
- Backend: Express.js API with MinIO CLI integration - Frontend: React with Material-UI for non-technical users - Features: Bucket management, user creation, storage monitoring - Security: JWT auth, IP filtering, encrypted passwords - Docker support for easy deployment - Automated weekly storage reports - Setup and deployment scripts included
37 lines
840 B
Bash
37 lines
840 B
Bash
# Application
|
|
NODE_ENV=production
|
|
PORT=3000
|
|
LOG_LEVEL=info
|
|
|
|
# Authentication
|
|
ADMIN_PASSWORD_HASH=$2b$12$REPLACE_WITH_ACTUAL_HASH
|
|
JWT_SECRET=REPLACE_WITH_RANDOM_64_CHAR_STRING
|
|
SESSION_TIMEOUT=1800
|
|
|
|
# IP Restrictions
|
|
ENABLE_IP_RESTRICTION=true
|
|
ALLOWED_IPS=192.168.1.0/24,10.0.0.5,172.16.0.0/16
|
|
|
|
# MinIO Configuration
|
|
DEFAULT_MINIO_ALIAS=kopiaminio
|
|
MINIO_ENDPOINT=https://minio.example.com
|
|
MINIO_ACCESS_KEY=minioadmin
|
|
MINIO_SECRET_KEY=minioadmin
|
|
|
|
# Email Configuration (for reports)
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_SECURE=false
|
|
SMTP_USER=your-email@gmail.com
|
|
SMTP_PASS=your-app-password
|
|
REPORT_RECIPIENT=info@example.com
|
|
REPORT_SENDER=kopiabackup@example.com
|
|
|
|
# Report Schedule (cron format)
|
|
# Every Monday at midnight
|
|
REPORT_SCHEDULE=0 0 * * 1
|
|
|
|
# Redis Configuration (optional)
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD= |