settings.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. """
  2. -----------------------------------------------------------------------------------------
  3. INTERSEL - 4 cité d'Hauteville - 75010 PARIS
  4. RCS PARIS 488 379 660 - NAF 721Z
  5. File : config/settings.py
  6. Object : Configuration of the MCP server
  7. -----------------------------------------------------------------------------------------
  8. Modifications :
  9. - 2026/01/16 - Damien Lugagne-Delpon - V1.0.0- Creation
  10. -----------------------------------------------------------------------------------------
  11. @copyright : Intersel 2026
  12. @author : Damien Lugagne-Delpon - damien.lugagne-delpon@livinweb.fr
  13. @version : 1.0.0 (to be updated to the current_version of the developed software if file is touched)
  14. -----------------------------------------------------------------------------------------
  15. """
  16. import os
  17. from enum import Enum
  18. # ============================================================================
  19. # MODX API Configuration
  20. # ============================================================================
  21. MODX_API_BASE_URL = os.getenv("MODX_API_BASE_URL", "")
  22. # MODX_API_KEY = os.getenv("MODX_API_KEY", "")
  23. MODX_API_TIMEOUT = int(os.getenv("MODX_API_TIMEOUT", "30"))
  24. # ============================================================================
  25. # Authentification
  26. # ============================================================================
  27. AUTH_TYPE = os.getenv("AUTH_TYPE", "")
  28. AUTH_TOKEN = os.getenv("AUTH_TOKEN", "")
  29. # ============================================================================
  30. # Application
  31. # ============================================================================
  32. APP_NAME = "LW-Copilot"
  33. APP_VERSION = "1.0.0"
  34. LOG_LEVEL = os.getenv("LOG_LEVEL", "DEBUG")
  35. # ============================================================================
  36. # Chemins des endpoints MODX
  37. # ============================================================================
  38. MODX_ENDPOINTS = {
  39. "resource": {
  40. "create": "/tools/resource", # POST /tools/resource
  41. "read": "/tools/resource/{id}", # GET /tools/resource/{id}
  42. "update": "/tools/resource/{id}", # PUT /tools/resource/{id}
  43. "list": "/tools/resources", # GET /tools/resources
  44. }
  45. }