Нет описания

config.py 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. from pydantic_settings import BaseSettings, SettingsConfigDict
  2. class Settings(BaseSettings):
  3. model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
  4. app_name: str = "soc-integrator"
  5. app_env: str = "dev"
  6. log_level: str = "INFO"
  7. soc_integrator_internal_key: str = "dev-internal-key"
  8. soc_integrator_db_host: str = "soc-integrator-db"
  9. soc_integrator_db_port: int = 5432
  10. soc_integrator_db_name: str = "soc_integrator"
  11. soc_integrator_db_user: str = "soc_integrator"
  12. soc_integrator_db_password: str = "soc_integrator_password"
  13. wazuh_base_url: str = "https://wazuh.manager:55000"
  14. wazuh_username: str = "wazuh-wui"
  15. wazuh_password: str = "MyS3cr37P450r.*-"
  16. wazuh_indexer_url: str = "https://wazuh.indexer:9200"
  17. wazuh_indexer_username: str = "admin"
  18. wazuh_indexer_password: str = "SecretPassword"
  19. wazuh_auto_sync_enabled: bool = True
  20. wazuh_auto_sync_interval_seconds: int = 60
  21. wazuh_auto_sync_query: str = "*"
  22. wazuh_auto_sync_limit: int = 50
  23. wazuh_auto_sync_minutes: int = 120
  24. shuffle_base_url: str = "http://shuffle-backend:5001"
  25. shuffle_api_key: str = ""
  26. shuffle_username: str = ""
  27. shuffle_password: str = ""
  28. pagerduty_base_url: str = "http://pagerduty-stub"
  29. pagerduty_api_key: str = ""
  30. iris_base_url: str = "https://iriswebapp_nginx:8443"
  31. iris_api_key: str = ""
  32. iris_default_customer_id: int = 1
  33. iris_default_soc_id: str = ""
  34. virustotal_base_url: str = "https://www.virustotal.com/api/v3"
  35. virustotal_api_key: str = ""
  36. abuseipdb_base_url: str = "https://api.abuseipdb.com/api/v2"
  37. abuseipdb_api_key: str = ""
  38. settings = Settings()