relayers
This commit is contained in:
1 parent
21964fa986
commit
797f379648
68 files changed
+23871
-1271
No files matched your search
+103
@@ -0,0 +1,103 @@
|
||||
# =============================================================================
|
||||
# COMPATIBLE ENVIRONMENT CONFIGURATION
|
||||
# Based on existing project structure with MariaDB
|
||||
# =============================================================================
|
||||
|
||||
# Application Settings
|
||||
DEBUG=false
|
||||
ENVIRONMENT=production
|
||||
SECRET_KEY=your-super-secret-key-change-this-in-production
|
||||
ENCRYPTION_KEY=your-encryption-key-for-file-encryption
|
||||
|
||||
# Server Configuration (keeping existing port)
|
||||
HOST=0.0.0.0
|
||||
PORT=15100
|
||||
WORKERS=4
|
||||
AUTO_RELOAD=false
|
||||
|
||||
# MariaDB Configuration (keeping existing database)
|
||||
MYSQL_ROOT_PASSWORD=password
|
||||
MYSQL_DATABASE=myuploader
|
||||
MYSQL_USER=myuploader
|
||||
MYSQL_PASSWORD=password
|
||||
MYSQL_HOST=maria_db
|
||||
MYSQL_PORT=3306
|
||||
|
||||
# Database URL for SQLAlchemy (MariaDB compatible)
|
||||
DATABASE_URL=mysql+aiomysql://myuploader:password@maria_db:3306/myuploader
|
||||
DATABASE_POOL_SIZE=20
|
||||
DATABASE_MAX_OVERFLOW=30
|
||||
DATABASE_POOL_TIMEOUT=30
|
||||
DATABASE_POOL_RECYCLE=3600
|
||||
|
||||
# Redis Configuration (new addition)
|
||||
REDIS_URL=redis://redis:6379/0
|
||||
REDIS_POOL_SIZE=10
|
||||
REDIS_MAX_CONNECTIONS=20
|
||||
REDIS_SOCKET_TIMEOUT=5
|
||||
REDIS_SOCKET_CONNECT_TIMEOUT=5
|
||||
|
||||
# Security Settings
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=60
|
||||
REFRESH_TOKEN_EXPIRE_DAYS=30
|
||||
PASSWORD_MIN_LENGTH=8
|
||||
RATE_LIMIT_ENABLED=true
|
||||
CORS_ORIGINS=["http://localhost:3000","https://yourdomain.com"]
|
||||
|
||||
# Storage Configuration (keeping existing paths)
|
||||
STORAGE_PATH=/app/data
|
||||
MAX_FILE_SIZE=10737418240
|
||||
MAX_CHUNK_SIZE=10485760
|
||||
CHUNK_SIZE=1048576
|
||||
ENCRYPT_FILES=true
|
||||
CLEANUP_TEMP_FILES=true
|
||||
|
||||
# User Limits
|
||||
MAX_UPLOADS_PER_DAY=100
|
||||
MAX_STORAGE_PER_USER=107374182400
|
||||
MAX_FILES_PER_USER=10000
|
||||
DAILY_TRANSACTION_LIMIT=10
|
||||
MAX_TRANSACTION_AMOUNT=5
|
||||
|
||||
# TON Blockchain Configuration
|
||||
TON_API_ENDPOINT=https://toncenter.com/api/v2
|
||||
TON_API_KEY=your-ton-api-key
|
||||
TON_TESTNET=false
|
||||
TON_WALLET_VERSION=v4
|
||||
|
||||
# Logging Configuration (keeping existing paths)
|
||||
LOG_LEVEL=INFO
|
||||
LOG_FORMAT=json
|
||||
LOG_FILE=/app/logs/app.log
|
||||
LOG_ROTATION=daily
|
||||
LOG_RETENTION_DAYS=30
|
||||
|
||||
# Email Configuration (Optional)
|
||||
SMTP_HOST=smtp.gmail.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USERNAME=your-email@gmail.com
|
||||
SMTP_PASSWORD=your-app-password
|
||||
SMTP_TLS=true
|
||||
FROM_EMAIL=noreply@yourdomain.com
|
||||
|
||||
# Monitoring Configuration (minimal)
|
||||
METRICS_ENABLED=true
|
||||
METRICS_PORT=9090
|
||||
HEALTH_CHECK_ENABLED=true
|
||||
|
||||
# External Services (Optional)
|
||||
WEBHOOK_URL=https://yourdomain.com/webhooks
|
||||
BACKUP_ENABLED=true
|
||||
BACKUP_SCHEDULE=0 2 * * *
|
||||
BACKUP_RETENTION_DAYS=30
|
||||
|
||||
# Development Settings (Only for development)
|
||||
# DEV_RELOAD=true
|
||||
# DEV_DEBUG_TOOLBAR=true
|
||||
# DEV_PROFILER=true
|
||||
|
||||
# Production Settings (Only for production)
|
||||
# SENTRY_DSN=https://your-sentry-dsn
|
||||
# SSL_ENABLED=true
|
||||
# SSL_CERT_PATH=/path/to/cert.pem
|
||||
# SSL_KEY_PATH=/path/to/key.pem
|
||||
Reference in new issue
Block a user