Files
paul 93d9c47ad5 fix: Prevent nodemon restarts during policy creation
- Move temp directory outside app folder to /tmp/minio-webui-temp
- Add nodemon.json to ignore temp, logs, and node_modules
- Add TEMP_DIR environment variable configuration
- Add cleanup routine for old temporary policy files (>1 hour)
- Update both dev and production Dockerfiles
- Update docker-compose configurations

This fixes the 500 error during QuickStartWizard policy creation
caused by nodemon restarting when temporary files were created.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-24 09:35:03 +02:00

49 lines
1.2 KiB
Bash

# Application
NODE_ENV=production
PORT=7510
LOG_LEVEL=info
TEMP_DIR=/tmp/minio-webui-temp
# 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
# Add your IP or subnet here. Examples:
# - Single IP: 10.30.30.2
# - Subnet: 10.30.30.0/24
# - Multiple: 10.30.30.2,192.168.1.0/24,172.16.0.0/16
ALLOWED_IPS=10.30.30.0/24,192.168.1.0/24,172.16.0.0/16,127.0.0.1
# MinIO Configuration
DEFAULT_MINIO_ALIAS=kopiaminio
MINIO_ENDPOINT=https://minio.example.com
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
# Email Configuration (for reports)
# For Microsoft Exchange on port 25 without TLS:
SMTP_HOST=exchange.yourcompany.com
SMTP_PORT=25
SMTP_SECURE=false
SMTP_USER=username
SMTP_PASS=password
# For Gmail/Office365 with STARTTLS:
# 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=