__init__.py 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  1. from typing import Annotated, Literal, Optional
  2. from pydantic import (
  3. AliasChoices,
  4. Field,
  5. HttpUrl,
  6. NegativeInt,
  7. NonNegativeInt,
  8. PositiveFloat,
  9. PositiveInt,
  10. computed_field,
  11. )
  12. from pydantic_extra_types.timezone_name import TimeZoneName
  13. from pydantic_settings import BaseSettings
  14. from configs.feature.hosted_service import HostedServiceConfig
  15. class SecurityConfig(BaseSettings):
  16. """
  17. Security-related configurations for the application
  18. """
  19. SECRET_KEY: str = Field(
  20. description="Secret key for secure session cookie signing."
  21. "Make sure you are changing this key for your deployment with a strong key."
  22. "Generate a strong key using `openssl rand -base64 42` or set via the `SECRET_KEY` environment variable.",
  23. default="",
  24. )
  25. RESET_PASSWORD_TOKEN_EXPIRY_MINUTES: PositiveInt = Field(
  26. description="Duration in minutes for which a password reset token remains valid",
  27. default=5,
  28. )
  29. LOGIN_DISABLED: bool = Field(
  30. description="Whether to disable login checks",
  31. default=False,
  32. )
  33. ADMIN_API_KEY_ENABLE: bool = Field(
  34. description="Whether to enable admin api key for authentication",
  35. default=False,
  36. )
  37. ADMIN_API_KEY: Optional[str] = Field(
  38. description="admin api key for authentication",
  39. default=None,
  40. )
  41. class AppExecutionConfig(BaseSettings):
  42. """
  43. Configuration parameters for application execution
  44. """
  45. APP_MAX_EXECUTION_TIME: PositiveInt = Field(
  46. description="Maximum allowed execution time for the application in seconds",
  47. default=1200,
  48. )
  49. APP_MAX_ACTIVE_REQUESTS: NonNegativeInt = Field(
  50. description="Maximum number of concurrent active requests per app (0 for unlimited)",
  51. default=0,
  52. )
  53. class CodeExecutionSandboxConfig(BaseSettings):
  54. """
  55. Configuration for the code execution sandbox environment
  56. """
  57. CODE_EXECUTION_ENDPOINT: HttpUrl = Field(
  58. description="URL endpoint for the code execution service",
  59. default="http://sandbox:8194",
  60. )
  61. CODE_EXECUTION_API_KEY: str = Field(
  62. description="API key for accessing the code execution service",
  63. default="dify-sandbox",
  64. )
  65. CODE_EXECUTION_CONNECT_TIMEOUT: Optional[float] = Field(
  66. description="Connection timeout in seconds for code execution requests",
  67. default=10.0,
  68. )
  69. CODE_EXECUTION_READ_TIMEOUT: Optional[float] = Field(
  70. description="Read timeout in seconds for code execution requests",
  71. default=60.0,
  72. )
  73. CODE_EXECUTION_WRITE_TIMEOUT: Optional[float] = Field(
  74. description="Write timeout in seconds for code execution request",
  75. default=10.0,
  76. )
  77. CODE_MAX_NUMBER: PositiveInt = Field(
  78. description="Maximum allowed numeric value in code execution",
  79. default=9223372036854775807,
  80. )
  81. CODE_MIN_NUMBER: NegativeInt = Field(
  82. description="Minimum allowed numeric value in code execution",
  83. default=-9223372036854775807,
  84. )
  85. CODE_MAX_DEPTH: PositiveInt = Field(
  86. description="Maximum allowed depth for nested structures in code execution",
  87. default=5,
  88. )
  89. CODE_MAX_PRECISION: PositiveInt = Field(
  90. description="mMaximum number of decimal places for floating-point numbers in code execution",
  91. default=20,
  92. )
  93. CODE_MAX_STRING_LENGTH: PositiveInt = Field(
  94. description="Maximum allowed length for strings in code execution",
  95. default=80000,
  96. )
  97. CODE_MAX_STRING_ARRAY_LENGTH: PositiveInt = Field(
  98. description="Maximum allowed length for string arrays in code execution",
  99. default=30,
  100. )
  101. CODE_MAX_OBJECT_ARRAY_LENGTH: PositiveInt = Field(
  102. description="Maximum allowed length for object arrays in code execution",
  103. default=30,
  104. )
  105. CODE_MAX_NUMBER_ARRAY_LENGTH: PositiveInt = Field(
  106. description="Maximum allowed length for numeric arrays in code execution",
  107. default=1000,
  108. )
  109. class EndpointConfig(BaseSettings):
  110. """
  111. Configuration for various application endpoints and URLs
  112. """
  113. CONSOLE_API_URL: str = Field(
  114. description="Base URL for the console API,"
  115. "used for login authentication callback or notion integration callbacks",
  116. default="",
  117. )
  118. CONSOLE_WEB_URL: str = Field(
  119. description="Base URL for the console web interface," "used for frontend references and CORS configuration",
  120. default="",
  121. )
  122. SERVICE_API_URL: str = Field(
  123. description="Base URL for the service API, displayed to users for API access",
  124. default="",
  125. )
  126. APP_WEB_URL: str = Field(
  127. description="Base URL for the web application, used for frontend references",
  128. default="",
  129. )
  130. class FileAccessConfig(BaseSettings):
  131. """
  132. Configuration for file access and handling
  133. """
  134. FILES_URL: str = Field(
  135. description="Base URL for file preview or download,"
  136. " used for frontend display and multi-model inputs"
  137. "Url is signed and has expiration time.",
  138. validation_alias=AliasChoices("FILES_URL", "CONSOLE_API_URL"),
  139. alias_priority=1,
  140. default="",
  141. )
  142. FILES_ACCESS_TIMEOUT: int = Field(
  143. description="Expiration time in seconds for file access URLs",
  144. default=300,
  145. )
  146. class FileUploadConfig(BaseSettings):
  147. """
  148. Configuration for file upload limitations
  149. """
  150. UPLOAD_FILE_SIZE_LIMIT: NonNegativeInt = Field(
  151. description="Maximum allowed file size for uploads in megabytes",
  152. default=15,
  153. )
  154. UPLOAD_FILE_BATCH_LIMIT: NonNegativeInt = Field(
  155. description="Maximum number of files allowed in a single upload batch",
  156. default=5,
  157. )
  158. UPLOAD_IMAGE_FILE_SIZE_LIMIT: NonNegativeInt = Field(
  159. description="Maximum allowed image file size for uploads in megabytes",
  160. default=10,
  161. )
  162. UPLOAD_VIDEO_FILE_SIZE_LIMIT: NonNegativeInt = Field(
  163. description="video file size limit in Megabytes for uploading files",
  164. default=100,
  165. )
  166. UPLOAD_AUDIO_FILE_SIZE_LIMIT: NonNegativeInt = Field(
  167. description="audio file size limit in Megabytes for uploading files",
  168. default=50,
  169. )
  170. BATCH_UPLOAD_LIMIT: NonNegativeInt = Field(
  171. description="Maximum number of files allowed in a batch upload operation",
  172. default=20,
  173. )
  174. class HttpConfig(BaseSettings):
  175. """
  176. HTTP-related configurations for the application
  177. """
  178. API_COMPRESSION_ENABLED: bool = Field(
  179. description="Enable or disable gzip compression for HTTP responses",
  180. default=False,
  181. )
  182. inner_CONSOLE_CORS_ALLOW_ORIGINS: str = Field(
  183. description="Comma-separated list of allowed origins for CORS in the console",
  184. validation_alias=AliasChoices("CONSOLE_CORS_ALLOW_ORIGINS", "CONSOLE_WEB_URL"),
  185. default="",
  186. )
  187. @computed_field
  188. @property
  189. def CONSOLE_CORS_ALLOW_ORIGINS(self) -> list[str]:
  190. return self.inner_CONSOLE_CORS_ALLOW_ORIGINS.split(",")
  191. inner_WEB_API_CORS_ALLOW_ORIGINS: str = Field(
  192. description="",
  193. validation_alias=AliasChoices("WEB_API_CORS_ALLOW_ORIGINS"),
  194. default="*",
  195. )
  196. @computed_field
  197. @property
  198. def WEB_API_CORS_ALLOW_ORIGINS(self) -> list[str]:
  199. return self.inner_WEB_API_CORS_ALLOW_ORIGINS.split(",")
  200. HTTP_REQUEST_MAX_CONNECT_TIMEOUT: Annotated[
  201. PositiveInt, Field(ge=10, description="Maximum connection timeout in seconds for HTTP requests")
  202. ] = 10
  203. HTTP_REQUEST_MAX_READ_TIMEOUT: Annotated[
  204. PositiveInt, Field(ge=60, description="Maximum read timeout in seconds for HTTP requests")
  205. ] = 60
  206. HTTP_REQUEST_MAX_WRITE_TIMEOUT: Annotated[
  207. PositiveInt, Field(ge=10, description="Maximum write timeout in seconds for HTTP requests")
  208. ] = 20
  209. HTTP_REQUEST_NODE_MAX_BINARY_SIZE: PositiveInt = Field(
  210. description="Maximum allowed size in bytes for binary data in HTTP requests",
  211. default=10 * 1024 * 1024,
  212. )
  213. HTTP_REQUEST_NODE_MAX_TEXT_SIZE: PositiveInt = Field(
  214. description="Maximum allowed size in bytes for text data in HTTP requests",
  215. default=1 * 1024 * 1024,
  216. )
  217. SSRF_PROXY_HTTP_URL: Optional[str] = Field(
  218. description="Proxy URL for HTTP requests to prevent Server-Side Request Forgery (SSRF)",
  219. default=None,
  220. )
  221. SSRF_PROXY_HTTPS_URL: Optional[str] = Field(
  222. description="Proxy URL for HTTPS requests to prevent Server-Side Request Forgery (SSRF)",
  223. default=None,
  224. )
  225. RESPECT_XFORWARD_HEADERS_ENABLED: bool = Field(
  226. description="Enable or disable the X-Forwarded-For Proxy Fix middleware from Werkzeug"
  227. " to respect X-* headers to redirect clients",
  228. default=False,
  229. )
  230. class InnerAPIConfig(BaseSettings):
  231. """
  232. Configuration for internal API functionality
  233. """
  234. INNER_API: bool = Field(
  235. description="Enable or disable the internal API",
  236. default=False,
  237. )
  238. INNER_API_KEY: Optional[str] = Field(
  239. description="API key for accessing the internal API",
  240. default=None,
  241. )
  242. class LoggingConfig(BaseSettings):
  243. """
  244. Configuration for application logging
  245. """
  246. LOG_LEVEL: str = Field(
  247. description="Logging level, default to INFO. Set to ERROR for production environments.",
  248. default="INFO",
  249. )
  250. LOG_FILE: Optional[str] = Field(
  251. description="File path for log output.",
  252. default=None,
  253. )
  254. LOG_FILE_MAX_SIZE: PositiveInt = Field(
  255. description="Maximum file size for file rotation retention, the unit is megabytes (MB)",
  256. default=20,
  257. )
  258. LOG_FILE_BACKUP_COUNT: PositiveInt = Field(
  259. description="Maximum file backup count file rotation retention",
  260. default=5,
  261. )
  262. LOG_FORMAT: str = Field(
  263. description="Format string for log messages",
  264. default="%(asctime)s.%(msecs)03d %(levelname)s [%(threadName)s] [%(filename)s:%(lineno)d] - %(message)s",
  265. )
  266. LOG_DATEFORMAT: Optional[str] = Field(
  267. description="Date format string for log timestamps",
  268. default=None,
  269. )
  270. LOG_TZ: Optional[TimeZoneName] = Field(
  271. description="Timezone for log timestamps. Allowed timezone values can be referred to IANA Time Zone Database,"
  272. " e.g., 'America/New_York')",
  273. default=None,
  274. )
  275. class ModelLoadBalanceConfig(BaseSettings):
  276. """
  277. Configuration for model load balancing
  278. """
  279. MODEL_LB_ENABLED: bool = Field(
  280. description="Enable or disable load balancing for models",
  281. default=False,
  282. )
  283. class BillingConfig(BaseSettings):
  284. """
  285. Configuration for platform billing features
  286. """
  287. BILLING_ENABLED: bool = Field(
  288. description="Enable or disable billing functionality",
  289. default=False,
  290. )
  291. class UpdateConfig(BaseSettings):
  292. """
  293. Configuration for application update checks
  294. """
  295. CHECK_UPDATE_URL: str = Field(
  296. description="URL to check for application updates",
  297. default="https://updates.dify.ai",
  298. )
  299. class WorkflowConfig(BaseSettings):
  300. """
  301. Configuration for workflow execution
  302. """
  303. WORKFLOW_MAX_EXECUTION_STEPS: PositiveInt = Field(
  304. description="Maximum number of steps allowed in a single workflow execution",
  305. default=500,
  306. )
  307. WORKFLOW_MAX_EXECUTION_TIME: PositiveInt = Field(
  308. description="Maximum execution time in seconds for a single workflow",
  309. default=1200,
  310. )
  311. WORKFLOW_CALL_MAX_DEPTH: PositiveInt = Field(
  312. description="Maximum allowed depth for nested workflow calls",
  313. default=5,
  314. )
  315. MAX_VARIABLE_SIZE: PositiveInt = Field(
  316. description="Maximum size in bytes for a single variable in workflows. Default to 200 KB.",
  317. default=200 * 1024,
  318. )
  319. class AuthConfig(BaseSettings):
  320. """
  321. Configuration for authentication and OAuth
  322. """
  323. OAUTH_REDIRECT_PATH: str = Field(
  324. description="Redirect path for OAuth authentication callbacks",
  325. default="/console/api/oauth/authorize",
  326. )
  327. GITHUB_CLIENT_ID: Optional[str] = Field(
  328. description="GitHub OAuth client ID",
  329. default=None,
  330. )
  331. GITHUB_CLIENT_SECRET: Optional[str] = Field(
  332. description="GitHub OAuth client secret",
  333. default=None,
  334. )
  335. GOOGLE_CLIENT_ID: Optional[str] = Field(
  336. description="Google OAuth client ID",
  337. default=None,
  338. )
  339. GOOGLE_CLIENT_SECRET: Optional[str] = Field(
  340. description="Google OAuth client secret",
  341. default=None,
  342. )
  343. ACCESS_TOKEN_EXPIRE_MINUTES: PositiveInt = Field(
  344. description="Expiration time for access tokens in minutes",
  345. default=60,
  346. )
  347. class ModerationConfig(BaseSettings):
  348. """
  349. Configuration for content moderation
  350. """
  351. MODERATION_BUFFER_SIZE: PositiveInt = Field(
  352. description="Size of the buffer for content moderation processing",
  353. default=300,
  354. )
  355. class ToolConfig(BaseSettings):
  356. """
  357. Configuration for tool management
  358. """
  359. TOOL_ICON_CACHE_MAX_AGE: PositiveInt = Field(
  360. description="Maximum age in seconds for caching tool icons",
  361. default=3600,
  362. )
  363. class MailConfig(BaseSettings):
  364. """
  365. Configuration for email services
  366. """
  367. MAIL_TYPE: Optional[str] = Field(
  368. description="Email service provider type ('smtp' or 'resend'), default to None.",
  369. default=None,
  370. )
  371. MAIL_DEFAULT_SEND_FROM: Optional[str] = Field(
  372. description="Default email address to use as the sender",
  373. default=None,
  374. )
  375. RESEND_API_KEY: Optional[str] = Field(
  376. description="API key for Resend email service",
  377. default=None,
  378. )
  379. RESEND_API_URL: Optional[str] = Field(
  380. description="API URL for Resend email service",
  381. default=None,
  382. )
  383. SMTP_SERVER: Optional[str] = Field(
  384. description="SMTP server hostname",
  385. default=None,
  386. )
  387. SMTP_PORT: Optional[int] = Field(
  388. description="SMTP server port number",
  389. default=465,
  390. )
  391. SMTP_USERNAME: Optional[str] = Field(
  392. description="Username for SMTP authentication",
  393. default=None,
  394. )
  395. SMTP_PASSWORD: Optional[str] = Field(
  396. description="Password for SMTP authentication",
  397. default=None,
  398. )
  399. SMTP_USE_TLS: bool = Field(
  400. description="Enable TLS encryption for SMTP connections",
  401. default=False,
  402. )
  403. SMTP_OPPORTUNISTIC_TLS: bool = Field(
  404. description="Enable opportunistic TLS for SMTP connections",
  405. default=False,
  406. )
  407. EMAIL_SEND_IP_LIMIT_PER_MINUTE: PositiveInt = Field(
  408. description="Maximum number of emails allowed to be sent from the same IP address in a minute",
  409. default=50,
  410. )
  411. class RagEtlConfig(BaseSettings):
  412. """
  413. Configuration for RAG ETL processes
  414. """
  415. # TODO: This config is not only for rag etl, it is also for file upload, we should move it to file upload config
  416. ETL_TYPE: str = Field(
  417. description="RAG ETL type ('dify' or 'Unstructured'), default to 'dify'",
  418. default="dify",
  419. )
  420. KEYWORD_DATA_SOURCE_TYPE: str = Field(
  421. description="Data source type for keyword extraction"
  422. " ('database' or other supported types), default to 'database'",
  423. default="database",
  424. )
  425. UNSTRUCTURED_API_URL: Optional[str] = Field(
  426. description="API URL for Unstructured.io service",
  427. default=None,
  428. )
  429. UNSTRUCTURED_API_KEY: Optional[str] = Field(
  430. description="API key for Unstructured.io service",
  431. default=None,
  432. )
  433. class DataSetConfig(BaseSettings):
  434. """
  435. Configuration for dataset management
  436. """
  437. PLAN_SANDBOX_CLEAN_DAY_SETTING: PositiveInt = Field(
  438. description="Interval in days for dataset cleanup operations - plan: sandbox",
  439. default=30,
  440. )
  441. PLAN_PRO_CLEAN_DAY_SETTING: PositiveInt = Field(
  442. description="Interval in days for dataset cleanup operations - plan: pro and team",
  443. default=7,
  444. )
  445. DATASET_OPERATOR_ENABLED: bool = Field(
  446. description="Enable or disable dataset operator functionality",
  447. default=False,
  448. )
  449. TIDB_SERVERLESS_NUMBER: PositiveInt = Field(
  450. description="number of tidb serverless cluster",
  451. default=500,
  452. )
  453. class WorkspaceConfig(BaseSettings):
  454. """
  455. Configuration for workspace management
  456. """
  457. INVITE_EXPIRY_HOURS: PositiveInt = Field(
  458. description="Expiration time in hours for workspace invitation links",
  459. default=72,
  460. )
  461. class IndexingConfig(BaseSettings):
  462. """
  463. Configuration for indexing operations
  464. """
  465. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH: PositiveInt = Field(
  466. description="Maximum token length for text segmentation during indexing",
  467. default=1000,
  468. )
  469. class ImageFormatConfig(BaseSettings):
  470. MULTIMODAL_SEND_IMAGE_FORMAT: Literal["base64", "url"] = Field(
  471. description="Format for sending images in multimodal contexts ('base64' or 'url'), default is base64",
  472. default="base64",
  473. )
  474. class CeleryBeatConfig(BaseSettings):
  475. CELERY_BEAT_SCHEDULER_TIME: int = Field(
  476. description="Interval in days for Celery Beat scheduler execution, default to 1 day",
  477. default=1,
  478. )
  479. class PositionConfig(BaseSettings):
  480. POSITION_PROVIDER_PINS: str = Field(
  481. description="Comma-separated list of pinned model providers",
  482. default="",
  483. )
  484. POSITION_PROVIDER_INCLUDES: str = Field(
  485. description="Comma-separated list of included model providers",
  486. default="",
  487. )
  488. POSITION_PROVIDER_EXCLUDES: str = Field(
  489. description="Comma-separated list of excluded model providers",
  490. default="",
  491. )
  492. POSITION_TOOL_PINS: str = Field(
  493. description="Comma-separated list of pinned tools",
  494. default="",
  495. )
  496. POSITION_TOOL_INCLUDES: str = Field(
  497. description="Comma-separated list of included tools",
  498. default="",
  499. )
  500. POSITION_TOOL_EXCLUDES: str = Field(
  501. description="Comma-separated list of excluded tools",
  502. default="",
  503. )
  504. @computed_field
  505. def POSITION_PROVIDER_PINS_LIST(self) -> list[str]:
  506. return [item.strip() for item in self.POSITION_PROVIDER_PINS.split(",") if item.strip() != ""]
  507. @computed_field
  508. def POSITION_PROVIDER_INCLUDES_SET(self) -> set[str]:
  509. return {item.strip() for item in self.POSITION_PROVIDER_INCLUDES.split(",") if item.strip() != ""}
  510. @computed_field
  511. def POSITION_PROVIDER_EXCLUDES_SET(self) -> set[str]:
  512. return {item.strip() for item in self.POSITION_PROVIDER_EXCLUDES.split(",") if item.strip() != ""}
  513. @computed_field
  514. def POSITION_TOOL_PINS_LIST(self) -> list[str]:
  515. return [item.strip() for item in self.POSITION_TOOL_PINS.split(",") if item.strip() != ""]
  516. @computed_field
  517. def POSITION_TOOL_INCLUDES_SET(self) -> set[str]:
  518. return {item.strip() for item in self.POSITION_TOOL_INCLUDES.split(",") if item.strip() != ""}
  519. @computed_field
  520. def POSITION_TOOL_EXCLUDES_SET(self) -> set[str]:
  521. return {item.strip() for item in self.POSITION_TOOL_EXCLUDES.split(",") if item.strip() != ""}
  522. class LoginConfig(BaseSettings):
  523. ENABLE_EMAIL_CODE_LOGIN: bool = Field(
  524. description="whether to enable email code login",
  525. default=False,
  526. )
  527. ENABLE_EMAIL_PASSWORD_LOGIN: bool = Field(
  528. description="whether to enable email password login",
  529. default=True,
  530. )
  531. ENABLE_SOCIAL_OAUTH_LOGIN: bool = Field(
  532. description="whether to enable github/google oauth login",
  533. default=False,
  534. )
  535. EMAIL_CODE_LOGIN_TOKEN_EXPIRY_MINUTES: PositiveInt = Field(
  536. description="expiry time in minutes for email code login token",
  537. default=5,
  538. )
  539. ALLOW_REGISTER: bool = Field(
  540. description="whether to enable register",
  541. default=False,
  542. )
  543. ALLOW_CREATE_WORKSPACE: bool = Field(
  544. description="whether to enable create workspace",
  545. default=False,
  546. )
  547. class FeatureConfig(
  548. # place the configs in alphabet order
  549. AppExecutionConfig,
  550. AuthConfig, # Changed from OAuthConfig to AuthConfig
  551. BillingConfig,
  552. CodeExecutionSandboxConfig,
  553. DataSetConfig,
  554. EndpointConfig,
  555. FileAccessConfig,
  556. FileUploadConfig,
  557. HttpConfig,
  558. ImageFormatConfig,
  559. InnerAPIConfig,
  560. IndexingConfig,
  561. LoggingConfig,
  562. MailConfig,
  563. ModelLoadBalanceConfig,
  564. ModerationConfig,
  565. PositionConfig,
  566. RagEtlConfig,
  567. SecurityConfig,
  568. ToolConfig,
  569. UpdateConfig,
  570. WorkflowConfig,
  571. WorkspaceConfig,
  572. LoginConfig,
  573. # hosted services config
  574. HostedServiceConfig,
  575. CeleryBeatConfig,
  576. ):
  577. pass