Coverage for services/api-gateway/src/config.py: 100%
18 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-25 16:18 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-25 16:18 +0000
1from pydantic_settings import BaseSettings
2from typing import List
5class Settings(BaseSettings):
6 service_name: str = "api-gateway"
7 service_port: int = 8000
8 environment: str = "development"
9 cors_origins: List[str] = ["*"]
10 database_url: str = "postgresql://heimdall_user:changeme@postgres:5432/heimdall"
11 redis_url: str = "redis://redis:6379/0"
13 # Backend service URLs
14 rf_acquisition_url: str = "http://rf-acquisition:8001"
15 inference_url: str = "http://inference:8003"
16 training_url: str = "http://training:8002"
17 data_ingestion_url: str = "http://data-ingestion-web:8004"
18 api_gateway_url: str = "http://localhost:8000"
20 class Config:
21 env_file = ".env"
22 case_sensitive = False
25settings = Settings()