new folder structure

This commit is contained in:
2025-09-29 09:17:13 +02:00
parent 38117ab875
commit 78fc6068fb
197 changed files with 3490 additions and 1117 deletions

View File

@@ -0,0 +1,28 @@
# Development Environment Variables
FLASK_ENV=development
DEBUG=True
# Database
DATABASE_URL=sqlite:///data/database/anime_dev.db
# Redis
REDIS_URL=redis://redis:6379/1
# Security
SECRET_KEY=dev-secret-key
SESSION_TIMEOUT=86400
# Logging
LOG_LEVEL=DEBUG
LOG_FORMAT=detailed
# Performance
CACHE_TIMEOUT=300
# Downloads
DOWNLOAD_PATH=/app/data/temp/downloads
MAX_CONCURRENT_DOWNLOADS=3
# Development
AUTO_RELOAD=true
DEBUG_TOOLBAR=true

View File

@@ -0,0 +1,31 @@
# Production Environment Variables
FLASK_ENV=production
DEBUG=False
# Database
DATABASE_URL=postgresql://aniworld:password@postgres:5432/aniworld_prod
DATABASE_POOL_SIZE=20
# Redis
REDIS_URL=redis://redis:6379/0
# Security
SECRET_KEY=change-this-in-production
SESSION_TIMEOUT=3600
CSRF_TOKEN_TIMEOUT=3600
# Logging
LOG_LEVEL=INFO
LOG_FORMAT=json
# Performance
CACHE_TIMEOUT=3600
MAX_WORKERS=4
# Downloads
DOWNLOAD_PATH=/app/downloads
MAX_CONCURRENT_DOWNLOADS=10
# Monitoring
HEALTH_CHECK_ENABLED=true
METRICS_ENABLED=true

28
config/docker/testing.env Normal file
View File

@@ -0,0 +1,28 @@
# Testing Environment Variables
FLASK_ENV=testing
DEBUG=False
TESTING=True
# Database
DATABASE_URL=sqlite:///data/database/anime_test.db
# Redis
REDIS_URL=redis://redis:6379/2
# Security
SECRET_KEY=test-secret-key
WTF_CSRF_ENABLED=False
# Logging
LOG_LEVEL=WARNING
# Performance
CACHE_TIMEOUT=60
# Downloads
DOWNLOAD_PATH=/app/data/temp/test_downloads
MAX_CONCURRENT_DOWNLOADS=1
# Testing
MOCK_EXTERNAL_APIS=true
FAST_MODE=true