23 lines
464 B
Python
23 lines
464 B
Python
from pydantic_settings import BaseSettings
|
|
from functools import lru_cache
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
# Odoo Connection
|
|
ODOO_URL: str = ""
|
|
ODOO_DB: str = ""
|
|
ODOO_USER: str = ""
|
|
ODOO_API_KEY: str = ""
|
|
|
|
# Internal Services
|
|
API_GATEWAY_URL: str = "http://localhost:8000"
|
|
FLOW_ENGINE_URL: str = "http://localhost:8001"
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
@lru_cache
|
|
def get_settings() -> Settings:
|
|
return Settings()
|