We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f8ca34 + 1c7a0ce commit 6cf09abCopy full SHA for 6cf09ab
backend/conf/settings_env.py
@@ -54,6 +54,9 @@
54
if default_cert_file and default_key_file:
55
default_ssl_options["cert"] = default_cert_file
56
default_ssl_options["key"] = default_key_file
57
+ # 跳过主机名/IP 验证,会降低安全性,正式环境不能开启
58
+ check_hostname = env.bool("BK_PAAS_DATABASE_TLS_CHECK_HOSTNAME", True)
59
+ default_ssl_options["check_hostname"] = check_hostname
60
61
if "OPTIONS" not in DATABASES["default"]:
62
DATABASES["default"]["OPTIONS"] = {}
0 commit comments