feat: Add program_name attribute to TiDB connection (#5499)

Signed-off-by: Xiaoguang Sun <sunxiaoguang@gmail.com>
This commit is contained in:
Xiaoguang Sun
2024-06-24 14:41:07 +08:00
committed by GitHub
parent 756d9a4bc2
commit 13fcd7a901
3 changed files with 8 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ class Config:
dotenv.load_dotenv()
self.TESTING = False
self.APPLICATION_NAME = "langgenius/dify"
# cors settings
self.CONSOLE_CORS_ALLOW_ORIGINS = get_cors_allow_origins(