45 lines
1.5 KiB
Text
45 lines
1.5 KiB
Text
# ==============================================================================
|
|
# VIDEO OPTIMIZER - ENVIRONMENT CONFIGURATION
|
|
# ==============================================================================
|
|
# Quick Start:
|
|
# Development: cp .env.development .env
|
|
# Production: cp .env.production .env (update SECRET_KEY!)
|
|
#
|
|
# Documentation: ENVIRONMENT_SETUP.md
|
|
# ==============================================================================
|
|
|
|
# Environment
|
|
FLASK_ENV=development
|
|
|
|
# Azure AD
|
|
AZURE_CLIENT_ID=your-client-id-here
|
|
AZURE_TENANT_ID=your-tenant-id-here
|
|
REDIRECT_URI=http://localhost:3000
|
|
|
|
# API
|
|
BACKEND_PORT=5000
|
|
API_BASE_URL=http://localhost:5000/api
|
|
FRONTEND_URL=http://localhost:3000
|
|
|
|
# File Management
|
|
MAX_FILE_SIZE_MB=500
|
|
FILE_RETENTION_HOURS=24
|
|
CLEANUP_CHECK_INTERVAL_MINUTES=60
|
|
|
|
# Security (Generate: python3 -c "import secrets; print(secrets.token_hex(32))")
|
|
SECRET_KEY=dev-secret-key-change-in-production
|
|
|
|
# Logging (DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
|
LOG_LEVEL=INFO
|
|
|
|
# Box Integration — runs on the same port as the web API (BACKEND_PORT)
|
|
# Webhook endpoint: POST http://your-server/webhooks/box
|
|
BOX_CONFIG_PATH=oliver_box_config.json
|
|
BOX_WEBHOOK_SECRET=your-webhook-secret-from-box
|
|
BOX_VIDEO_OPTIMIZER_FOLDER_ID=362124323515
|
|
BOX_AS_USER_ID=
|
|
|
|
# Polling mode (alternative to webhooks - no public URL required)
|
|
# Set BOX_USE_POLLING=true to check IN folder on an interval instead of waiting for webhooks
|
|
BOX_USE_POLLING=false
|
|
BOX_POLL_INTERVAL_SECONDS=60
|