feat: Allow env_nested config with __ (#5616)

This commit is contained in:
eMerzh
2025-08-19 23:00:53 +02:00
committed by GitHub
parent 12d38c89ea
commit 6f0183cc4b

View File

@@ -434,7 +434,7 @@ class AppSettings(AppLoggingSettings):
def WORKERS(self) -> int: def WORKERS(self) -> int:
return max(1, self.WORKER_PER_CORE * self.UVICORN_WORKERS) return max(1, self.WORKER_PER_CORE * self.UVICORN_WORKERS)
model_config = SettingsConfigDict(arbitrary_types_allowed=True, extra="allow") model_config = SettingsConfigDict(arbitrary_types_allowed=True, extra="allow", env_nested_delimiter="__")
# =============================================== # ===============================================
# TLS # TLS