Create .env
Browse files
.env
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Environment Variables Configuration (.env file)
|
| 2 |
+
|
| 3 |
+
# Load Balancer Configuration
|
| 4 |
+
LOAD_BALANCER_ENABLED=true
|
| 5 |
+
SERVER_ID=server_1
|
| 6 |
+
CURRENT_SERVER_URL=https://your-huggingface-space-1.hf.space
|
| 7 |
+
|
| 8 |
+
# Peer Servers (comma-separated URLs)
|
| 9 |
+
PEER_SERVERS=https://your-huggingface-space-2.hf.space,https://your-huggingface-space-3.hf.space,https://your-huggingface-space-4.hf.space
|
| 10 |
+
|
| 11 |
+
# WordPress Integration
|
| 12 |
+
WORDPRESS_NOTIFICATION_URL=https://echovizio.us.to
|
| 13 |
+
|
| 14 |
+
# Model Configuration
|
| 15 |
+
MODEL_NAME=facebook/m2m100_418M
|
| 16 |
+
CACHE_EXPIRY=3600
|
| 17 |
+
MAX_CHUNK_SIZE=350
|
| 18 |
+
MAX_WORKERS=3
|
| 19 |
+
CLEANUP_INTERVAL=300
|
| 20 |
+
|
| 21 |
+
# Server Configuration
|
| 22 |
+
PORT=7860
|
| 23 |
+
HOST=0.0.0.0
|
| 24 |
+
|
| 25 |
+
# Health Check Configuration
|
| 26 |
+
HEALTH_CHECK_INTERVAL=30
|
| 27 |
+
MAX_RETRIES=3
|
| 28 |
+
REQUEST_TIMEOUT=300
|
| 29 |
+
|
| 30 |
+
# Queue Configuration
|
| 31 |
+
MAX_QUEUE_SIZE=1000
|
| 32 |
+
QUEUE_PROCESSING_ENABLED=true
|
| 33 |
+
|
| 34 |
+
# Security (Optional)
|
| 35 |
+
API_KEY=your-secret-api-key
|
| 36 |
+
ALLOWED_ORIGINS=*
|