LOT 1 - Optimizare script build -Instalare mono comanda
This commit is contained in:
parent
5380c3fc63
commit
42ff22bf85
127 changed files with 16163 additions and 532 deletions
100
ai_platform/modules/domain_check/.env
Normal file
100
ai_platform/modules/domain_check/.env
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
# ===========================================
|
||||
# DIDI Domain Check (T4 — evaluare credibilitate sursă)
|
||||
# Modul dedicat platformei DIDI. Rulează izolat: Postgres + Redis proprii
|
||||
# pe rețeaua internă domain_check_network; API-ul e expus pe didi-network
|
||||
# ca `domain-check-api:11000` pentru agent-v3 (Lot 2).
|
||||
# ===========================================
|
||||
|
||||
# Imagine locală (se construiește din ./api, nu se trage din registry)
|
||||
REGISTRY_IMAGE=didiai-domain-check
|
||||
IMAGE_TAG=latest
|
||||
|
||||
# ===========================================
|
||||
# Database (izolat — doar pe rețeaua internă)
|
||||
# ===========================================
|
||||
DB_PASSWORD=8W2XWONcuorqzY0h4xAgJeSJ
|
||||
DB_USER=dns_admin
|
||||
DB_NAME=domain_check
|
||||
DB_HOST=didiAI-domain-check-db
|
||||
DB_PORT=5432
|
||||
DB_EXTERNAL_PORT=12000
|
||||
|
||||
# ===========================================
|
||||
# Redis (izolat — doar pe rețeaua internă)
|
||||
# ===========================================
|
||||
REDIS_HOST=didiAI-domain-check-redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_EXTERNAL_PORT=12300
|
||||
REDIS_DB=0
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# ===========================================
|
||||
# API Keys
|
||||
# ===========================================
|
||||
WHOXY_API_KEY=876528325417e0bgs418d2cc7d8f193a6
|
||||
VIRUSTOTAL_API_KEY=4d7afdff71c977a178b07d25b58c36660c416e3e9b1bf7ee8efaaf94aa02d0bc
|
||||
|
||||
# ===========================================
|
||||
# Application (producție)
|
||||
# ===========================================
|
||||
FLASK_ENV=production
|
||||
FLASK_APP=run.py
|
||||
SECRET_KEY=3UnlbbbKMLYalxtvu7IJHAwMMF5KIFYj
|
||||
LOG_LEVEL=INFO
|
||||
DEBUG=False
|
||||
|
||||
# ===========================================
|
||||
# API
|
||||
# ===========================================
|
||||
API_HOST=0.0.0.0
|
||||
API_PORT=11000
|
||||
API_VERSION=v1
|
||||
|
||||
# ===========================================
|
||||
# Cache TTL (secunde)
|
||||
# ===========================================
|
||||
REDIS_TTL_HOT=21600
|
||||
REDIS_TTL_WARM=86400
|
||||
REDIS_TTL_COLD=604800
|
||||
|
||||
# ===========================================
|
||||
# Risk thresholds
|
||||
# ===========================================
|
||||
RISK_THRESHOLD_LOW=30
|
||||
RISK_THRESHOLD_MEDIUM=60
|
||||
RISK_THRESHOLD_HIGH=85
|
||||
DOMAIN_AGE_CRITICAL=90
|
||||
DOMAIN_AGE_HIGH=180
|
||||
DOMAIN_AGE_MEDIUM=365
|
||||
|
||||
# ===========================================
|
||||
# Rate limiting extern (protejează cotele Whoxy/VirusTotal; intern e exempt)
|
||||
# ===========================================
|
||||
WHOXY_DAILY_LIMIT=8000
|
||||
VIRUSTOTAL_DAILY_LIMIT=500
|
||||
|
||||
# ===========================================
|
||||
# Batch
|
||||
# ===========================================
|
||||
BATCH_CHUNK_SIZE=50
|
||||
BATCH_TIMEOUT_SECONDS=300
|
||||
|
||||
# ===========================================
|
||||
# Celery (broker/back-end pe Redis-ul intern)
|
||||
# ===========================================
|
||||
CELERY_BROKER_URL=redis://didiAI-domain-check-redis:6379/1
|
||||
CELERY_RESULT_BACKEND=redis://didiAI-domain-check-redis:6379/2
|
||||
|
||||
# ===========================================
|
||||
# Monitoring (opțional)
|
||||
# ===========================================
|
||||
SENTRY_DSN=
|
||||
DATADOG_API_KEY=
|
||||
|
||||
# ===========================================
|
||||
# Security
|
||||
# ===========================================
|
||||
# Consumatorul e agent-v3 (server-to-server pe didi-network), fără browser → CORS lax OK.
|
||||
CORS_ORIGINS=*
|
||||
DISABLE_SWAGGER=false
|
||||
SIMPLE_HEALTH=false
|
||||
Loading…
Add table
Add a link
Reference in a new issue