feat: 支持管理员配置导航栏上帮助中的url

pull/7165/head
jiangweidong 3 years ago committed by 老广
parent b001443f34
commit f2b72aae37

@ -355,6 +355,11 @@ class Config(dict):
'WINDOWS_SSH_DEFAULT_SHELL': 'cmd',
'PERIOD_TASK_ENABLED': True,
# 导航栏 帮助
'HELP_DOCUMENT_URL': 'http://docs.jumpserver.org',
'HELP_SUPPORT_URL': 'http://www.jumpserver.org/support/',
'OFFICIAL_WEBSITE_URL': 'http://www.jumpserver.org',
'TICKETS_ENABLED': True,
'FORGOT_PASSWORD_URL': '',
'HEALTH_CHECK_TOKEN': '',

@ -29,6 +29,21 @@ class OtherSettingSerializer(serializers.Serializer):
required=False, label=_("Perm single to ungroup node")
)
HELP_DOCUMENT_URL = serializers.URLField(
required=False, allow_blank=True, allow_null=True, label=_("Help Docs URL"),
help_text=_('default: http://docs.jumpserver.org')
)
HELP_SUPPORT_URL = serializers.URLField(
required=False, allow_blank=True, allow_null=True, label=_("Help Support URL"),
help_text=_('default: http://www.jumpserver.org/support/')
)
OFFICIAL_WEBSITE_URL = serializers.URLField(
required=False, allow_blank=True, allow_null=True, label=_("Help Website URL"),
help_text=_('default: http://www.jumpserver.org')
)
# 准备废弃
# PERIOD_TASK_ENABLED = serializers.BooleanField(
# required=False, label=_("Enable period task")

Loading…
Cancel
Save