57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
# Aniworld Server Environment Configuration
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# Security (REQUIRED - Generate secure random values)
|
|
SECRET_KEY=your_secret_key_here
|
|
JWT_SECRET_KEY=your_jwt_secret_here
|
|
PASSWORD_SALT=your_password_salt_here
|
|
|
|
# Database Configuration
|
|
DATABASE_URL=sqlite:///data/aniworld.db
|
|
# DATABASE_PASSWORD=your_db_password_here
|
|
DATABASE_POOL_SIZE=10
|
|
DATABASE_MAX_OVERFLOW=20
|
|
DATABASE_POOL_TIMEOUT=30
|
|
DATABASE_POOL_RECYCLE=3600
|
|
|
|
# Redis Configuration (for caching and sessions)
|
|
REDIS_URL=redis://localhost:6379/0
|
|
# REDIS_PASSWORD=your_redis_password_here
|
|
REDIS_MAX_CONNECTIONS=10
|
|
REDIS_SOCKET_TIMEOUT=5
|
|
|
|
# Email Configuration (for password reset emails)
|
|
SMTP_SERVER=localhost
|
|
SMTP_PORT=587
|
|
# SMTP_USERNAME=your_smtp_username
|
|
# SMTP_PASSWORD=your_smtp_password
|
|
SMTP_USE_TLS=true
|
|
FROM_EMAIL=noreply@aniworld.local
|
|
|
|
# External API Keys
|
|
# ANIME_PROVIDER_API_KEY=your_anime_provider_api_key
|
|
# TMDB_API_KEY=your_tmdb_api_key
|
|
|
|
# Security Settings
|
|
SESSION_TIMEOUT_HOURS=24
|
|
MAX_FAILED_LOGIN_ATTEMPTS=5
|
|
LOCKOUT_DURATION_MINUTES=30
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_PER_MINUTE=60
|
|
API_RATE_LIMIT_PER_MINUTE=100
|
|
|
|
# Application Settings
|
|
DEBUG=false
|
|
HOST=127.0.0.1
|
|
PORT=5000
|
|
|
|
# Anime and Download Settings
|
|
ANIME_DIRECTORY=./downloads
|
|
MAX_CONCURRENT_DOWNLOADS=3
|
|
# DOWNLOAD_SPEED_LIMIT=1000000 # bytes per second
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO
|
|
LOG_FILE=logs/aniworld.log
|