mirror of https://github.com/tp4a/teleport
parent
37293c96e8
commit
c019172197
|
@ -460,6 +460,19 @@ class AppConfig(BaseAppConfig):
|
||||||
log.w('system default config info is empty.\n')
|
log.w('system default config info is empty.\n')
|
||||||
# return True
|
# return True
|
||||||
|
|
||||||
|
# =====================================
|
||||||
|
# 全局设置相关
|
||||||
|
# =====================================
|
||||||
|
try:
|
||||||
|
_glob = json.loads(conf_data['global'])
|
||||||
|
except:
|
||||||
|
log.w('password config not set or invalid, use default.\n')
|
||||||
|
_glob = {}
|
||||||
|
|
||||||
|
self.sys.glob = tp_convert_to_attr_dict(_glob)
|
||||||
|
if not self.sys.glob.is_exists('url_proto'):
|
||||||
|
self.sys.glob.url_proto = False
|
||||||
|
|
||||||
# =====================================
|
# =====================================
|
||||||
# 密码策略相关
|
# 密码策略相关
|
||||||
# =====================================
|
# =====================================
|
||||||
|
|
Loading…
Reference in New Issue