fix(连接): 默认校验 T+ 证书并限制开发端口
T+ 连接默认校验服务器证书,隔离开发回退须显式配置。 MySQL 与 Redis 的开发端口仅绑定本机回环地址。
This commit is contained in:
1 parent
908851a704
commit
5e5304eece
4 files changed
+10
-9
No files matched your search
@@ -92,7 +92,8 @@ class Settings(BaseSettings):
|
||||
# 部署前必须指定已在 SQL Server 2008 R2 实测的驱动,不自动选择最新版。
|
||||
t_plus_odbc_driver: str = ""
|
||||
t_plus_encrypt: bool = True
|
||||
t_plus_trust_server_certificate: bool = True
|
||||
# 默认校验服务器证书;自签回退只允许隔离开发显式开启,避免中间人替换证书。
|
||||
t_plus_trust_server_certificate: bool = False
|
||||
t_plus_connect_timeout: int = 10
|
||||
t_plus_query_timeout: int = Field(default=120, ge=1, le=600)
|
||||
t_plus_query_dir: str = ""
|
||||
|
||||
Reference in new issue
Block a user