89 lines
3.6 KiB
Plaintext
89 lines
3.6 KiB
Plaintext
|
|
# ==============================================================
|
||
|
|
# SECURE VIDEO & FILE SHARING MANAGEMENT SYSTEM - ENVIRONMENT CONFIG
|
||
|
|
# ==============================================================
|
||
|
|
|
||
|
|
# Common Environment
|
||
|
|
NODE_ENV=production
|
||
|
|
PORT=4000
|
||
|
|
FRONTEND_URL=http://localhost:3000
|
||
|
|
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# 1. DATABASE CONFIGURATION (MySQL 8.0 / MariaDB)
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# For Docker Compose:
|
||
|
|
DATABASE_URL="mysql://fileshare:fileshare_secure_pass@mysql:3306/fileshare_db"
|
||
|
|
|
||
|
|
# For Windows Native (e.g. XAMPP or local MySQL):
|
||
|
|
# DATABASE_URL="mysql://root:@127.0.0.1:3306/fileshare_db"
|
||
|
|
|
||
|
|
# For Linux Native (Ubuntu/Debian system MySQL):
|
||
|
|
# DATABASE_URL="mysql://fileshare_user:SecurePassword123!@127.0.0.1:3306/fileshare_db"
|
||
|
|
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# 2. JWT SECURITY KEYS (Use 64+ char random strings in production)
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
JWT_ACCESS_SECRET="dev_access_secret_cross_platform_secure_2026_key_123456"
|
||
|
|
JWT_ACCESS_EXPIRATION="15m"
|
||
|
|
JWT_REFRESH_SECRET="dev_refresh_secret_cross_platform_secure_2026_key_654321"
|
||
|
|
JWT_REFRESH_EXPIRATION="7d"
|
||
|
|
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# 3. CROSS-PLATFORM FILESYSTEM STORAGE CONFIGURATION
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
STORAGE_DRIVER=local
|
||
|
|
|
||
|
|
# [A] For Docker Compose (Linux Container Volume):
|
||
|
|
LOCAL_STORAGE_PATH=/app/storage
|
||
|
|
|
||
|
|
# [B] For Windows Native Deployment:
|
||
|
|
# Examples of Windows paths supported by StoragePathUtils:
|
||
|
|
# LOCAL_STORAGE_PATH=D:\Project\fileshareproject\storage
|
||
|
|
# LOCAL_STORAGE_PATH=C:\fileshare\storage
|
||
|
|
# LOCAL_STORAGE_PATH=../../storage
|
||
|
|
|
||
|
|
# [C] For Linux Native Deployment (Ubuntu / Debian / CentOS):
|
||
|
|
# Examples of Linux POSIX paths supported:
|
||
|
|
# LOCAL_STORAGE_PATH=/var/lib/fileshare/storage
|
||
|
|
# LOCAL_STORAGE_PATH=/opt/fileshare/storage
|
||
|
|
# LOCAL_STORAGE_PATH=./storage
|
||
|
|
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# 4. S3 / MinIO OBJECT STORAGE (Optional: when STORAGE_DRIVER=s3)
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
S3_ENDPOINT=http://127.0.0.1:9000
|
||
|
|
S3_REGION=us-east-1
|
||
|
|
S3_BUCKET=fileshare-bucket
|
||
|
|
S3_ACCESS_KEY=minioadmin
|
||
|
|
S3_SECRET_KEY=minioadminpassword
|
||
|
|
S3_FORCE_PATH_STYLE=true
|
||
|
|
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# 5. REDIS QUEUE CONFIGURATION (BullMQ)
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# Note: If Redis is offline, the backend automatically activates
|
||
|
|
# a resilient in-process background worker for video transcoding.
|
||
|
|
REDIS_HOST=127.0.0.1
|
||
|
|
REDIS_PORT=6379
|
||
|
|
REDIS_PASSWORD=
|
||
|
|
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# 6. FFMPEG & FFPROBE PATHS (Optional: auto-detected if empty)
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# On Linux: Auto-detected from /usr/bin/ffmpeg or /usr/local/bin/ffmpeg
|
||
|
|
# On Windows: Auto-detected from PATH, C:\ffmpeg\bin, Chocolatey, or WinGet
|
||
|
|
# You can override with an explicit path if installed in a custom location:
|
||
|
|
# Windows Example: FFMPEG_PATH=C:\ffmpeg\bin\ffmpeg.exe
|
||
|
|
# Windows Example: FFPROBE_PATH=C:\ffmpeg\bin\ffprobe.exe
|
||
|
|
# Linux Example: FFMPEG_PATH=/usr/bin/ffmpeg
|
||
|
|
# Linux Example: FFPROBE_PATH=/usr/bin/ffprobe
|
||
|
|
FFMPEG_PATH=
|
||
|
|
FFPROBE_PATH=
|
||
|
|
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
# 7. INITIAL BOOTSTRAP SUPER ADMIN CREDENTIALS
|
||
|
|
# --------------------------------------------------------------
|
||
|
|
INITIAL_ADMIN_EMAIL=superadmin@fileshare.local
|
||
|
|
INITIAL_ADMIN_USERNAME=superadmin
|
||
|
|
INITIAL_ADMIN_PASSWORD=SuperAdmin@Secure2026!
|
||
|
|
INITIAL_ADMIN_FULLNAME="Super Administrator"
|