2015-11-21 06:57:28 -05:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 17:56:10 -05:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content admin config">
|
2017-03-15 18:39:38 -04:00
|
|
|
{{template "admin/navbar" .}}
|
2015-12-07 17:30:52 -05:00
|
|
|
<div class="ui container">
|
2017-03-15 18:39:38 -04:00
|
|
|
{{template "base/alert" .}}
|
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.server_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.app_name"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{AppName}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.app_ver"}}</dt>
|
2023-04-07 03:31:41 -04:00
|
|
|
<dd>{{AppVer}}{{.AppBuiltWith}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.custom_conf"}}</dt>
|
2017-06-22 09:21:56 -04:00
|
|
|
<dd>{{.CustomConf}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.app_url"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.AppUrl}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.domain"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.Domain}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.offline_mode"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .OfflineMode}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.disable_router_log"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .DisableRouterLog}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2016-02-27 20:48:39 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<div class="ui divider"></div>
|
2016-02-27 20:48:39 -05:00
|
|
|
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.run_user"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.RunUser}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.run_mode"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.RunMode}}</dd>
|
2016-02-27 20:48:39 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<div class="ui divider"></div>
|
2016-02-27 20:48:39 -05:00
|
|
|
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.git_version"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.GitVersion}}</dd>
|
2017-02-13 06:49:42 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<div class="ui divider"></div>
|
2017-02-13 06:49:42 -05:00
|
|
|
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.repo_root_path"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.RepoRootPath}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.static_file_root_path"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.StaticRootPath}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.custom_file_root_path"}}</dt>
|
2019-03-19 18:40:13 -04:00
|
|
|
<dd>{{.CustomRootPath}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.log_file_root_path"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.LogRootPath}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.script_type"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.ScriptType}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.reverse_auth_user"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.ReverseProxyAuthUser}}</dd>
|
2019-03-19 18:40:13 -04:00
|
|
|
|
2022-08-25 17:55:52 -04:00
|
|
|
{{if .EnvVars}}
|
2019-03-19 18:40:13 -04:00
|
|
|
<div class="ui divider"></div>
|
|
|
|
{{range .EnvVars}}
|
|
|
|
<dt>{{.Name}}</dt>
|
|
|
|
<dd>{{.Value}}</dd>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
</dl>
|
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.ssh_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_enabled"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if not .SSH.Disabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
{{if not .SSH.Disabled}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_start_builtin_server"}}</dt>
|
2021-04-14 13:54:54 -04:00
|
|
|
<dd>{{if .SSH.StartBuiltinServer}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_domain"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.SSH.Domain}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_port"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.SSH.Port}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_listen_port"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.SSH.ListenPort}}</dd>
|
2016-02-27 20:48:39 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
{{if not .SSH.StartBuiltinServer}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_root_path"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.SSH.RootPath}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_key_test_path"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.SSH.KeyTestPath}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_keygen_path"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.SSH.KeygenPath}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_minimum_key_size_check"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .SSH.MinimumKeySizeCheck}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
{{if .SSH.MinimumKeySizeCheck}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.ssh_minimum_key_sizes"}}</dt>
|
2019-08-26 06:47:41 -04:00
|
|
|
<dd>{{.SSH.MinimumKeySizes}}</dd>
|
2016-02-27 20:48:39 -05:00
|
|
|
{{end}}
|
2017-03-15 18:39:38 -04:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</dl>
|
|
|
|
</div>
|
2016-02-27 20:48:39 -05:00
|
|
|
|
2019-06-16 14:24:49 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.lfs_config"}}
|
2019-06-16 14:24:49 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.lfs_enabled"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .LFS.StartServer}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2019-06-16 14:24:49 -04:00
|
|
|
{{if .LFS.StartServer}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.lfs_content_path"}}</dt>
|
2020-09-29 15:26:45 -04:00
|
|
|
<dd>{{.LFS.Path}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.lfs_http_auth_expiry"}}</dt>
|
2019-06-16 14:24:49 -04:00
|
|
|
<dd>{{.LFS.HTTPAuthExpiry}}</dd>
|
|
|
|
{{end}}
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.db_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.db_type"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.DbCfg.Type}}</dd>
|
2021-12-07 00:44:08 -05:00
|
|
|
{{if not (eq .DbCfg.Type "sqlite3")}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.db_host"}}</dt>
|
2019-08-26 06:47:41 -04:00
|
|
|
<dd>{{if .DbCfg.Host}}{{.DbCfg.Host}}{{else}}-{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.db_name"}}</dt>
|
2019-08-26 06:47:41 -04:00
|
|
|
<dd>{{if .DbCfg.Name}}{{.DbCfg.Name}}{{else}}-{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.db_user"}}</dt>
|
2019-08-26 06:47:41 -04:00
|
|
|
<dd>{{if .DbCfg.User}}{{.DbCfg.User}}{{else}}-{{end}}</dd>
|
2018-06-06 19:13:42 -04:00
|
|
|
{{end}}
|
|
|
|
{{if eq .DbCfg.Type "postgres"}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.db_schema"}}</dt>
|
2020-01-20 10:45:14 -05:00
|
|
|
<dd>{{if .DbCfg.Schema}}{{.DbCfg.Schema}}{{else}}-{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.db_ssl_mode"}}</dt>
|
2019-08-26 06:47:41 -04:00
|
|
|
<dd>{{if .DbCfg.SSLMode}}{{.DbCfg.SSLMode}}{{else}}-{{end}}</dd>
|
2018-06-06 19:13:42 -04:00
|
|
|
{{end}}
|
2021-12-07 00:44:08 -05:00
|
|
|
{{if eq .DbCfg.Type "sqlite3"}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.db_path"}}</dt>
|
2019-08-26 06:47:41 -04:00
|
|
|
<dd>{{if .DbCfg.Path}}{{.DbCfg.Path}}{{else}}-{{end}}</dd>
|
2018-06-06 19:13:42 -04:00
|
|
|
{{end}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</dl>
|
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.service_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.register_email_confirm"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.RegisterEmailConfirm}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.disable_register"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.DisableRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.allow_only_internal_registration"}}</dt>
|
2021-05-09 10:13:35 -04:00
|
|
|
<dd>{{if .Service.AllowOnlyInternalRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.allow_only_external_registration"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.AllowOnlyExternalRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.show_registration_button"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.ShowRegistrationButton}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.enable_openid_signup"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.EnableOpenIDSignUp}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.enable_openid_signin"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.EnableOpenIDSignIn}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.require_sign_in_view"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.RequireSignInView}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.mail_notify"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.EnableNotifyMail}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.disable_key_size_check"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .SSH.MinimumKeySizeCheck}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.enable_captcha"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.EnableCaptcha}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.default_keep_email_private"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.DefaultKeepEmailPrivate}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.default_allow_create_organization"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.DefaultAllowCreateOrganization}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.enable_timetracking"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.EnableTimetracking}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2018-04-09 11:15:32 -04:00
|
|
|
{{if .Service.EnableTimetracking}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.default_enable_timetracking"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.DefaultEnableTimetracking}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.default_allow_only_contributors_to_track_time"}}</dt>
|
2022-12-10 23:06:12 -05:00
|
|
|
<dd>{{if .Service.DefaultAllowOnlyContributorsToTrackTime}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2018-04-09 11:15:32 -04:00
|
|
|
{{end}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.default_visibility_organization"}}</dt>
|
2019-02-18 11:00:27 -05:00
|
|
|
<dd>{{.Service.DefaultOrgVisibility}}</dd>
|
|
|
|
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.no_reply_address"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{if .Service.NoReplyAddress}}{{.Service.NoReplyAddress}}{{else}}-{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.default_enable_dependencies"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Service.DefaultEnableDependencies}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
<div class="ui divider"></div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.active_code_lives"}}</dt>
|
|
|
|
<dd>{{.Service.ActiveCodeLives}} {{.locale.Tr "tool.raw_minutes"}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.reset_password_code_lives"}}</dt>
|
|
|
|
<dd>{{.Service.ResetPwdCodeLives}} {{.locale.Tr "tool.raw_minutes"}}</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
</dl>
|
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.webhook_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.queue_length"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.Webhook.QueueLength}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.deliver_timeout"}}</dt>
|
|
|
|
<dd>{{.Webhook.DeliverTimeout}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.skip_tls_verify"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Webhook.SkipTLSVerify}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
</dl>
|
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.mailer_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_enabled"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .MailerEnabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
{{if .MailerEnabled}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_name"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.Mailer.Name}}</dd>
|
2022-08-02 12:43:27 -04:00
|
|
|
{{if eq .Mailer.Protocol "sendmail"}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_use_sendmail"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{svg "octicon-check"}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_sendmail_path"}}</dt>
|
2017-10-26 04:47:16 -04:00
|
|
|
<dd>{{.Mailer.SendmailPath}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_sendmail_args"}}</dt>
|
2017-10-26 04:47:16 -04:00
|
|
|
<dd>{{.Mailer.SendmailArgs}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_sendmail_timeout"}}</dt>
|
|
|
|
<dd>{{.Mailer.SendmailTimeout}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
2022-08-02 12:43:27 -04:00
|
|
|
{{else if eq .Mailer.Protocol "dummy"}}
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_use_dummy"}}</dt>
|
|
|
|
<dd>{{svg "octicon-check"}}</dd>
|
|
|
|
{{else}}{{/* SMTP family */}}
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_protocol"}}</dt>
|
|
|
|
<dd>{{.Mailer.Protocol}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_enable_helo"}}</dt>
|
|
|
|
<dd>{{if .Mailer.EnableHelo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_smtp_addr"}}</dt>
|
|
|
|
<dd>{{.Mailer.SMTPAddr}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_smtp_port"}}</dt>
|
|
|
|
<dd>{{.Mailer.SMTPPort}}</dd>
|
2017-10-26 04:47:16 -04:00
|
|
|
{{end}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.mailer_user"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}</dd><br>
|
2018-03-23 10:10:42 -04:00
|
|
|
<form class="ui form ignore-dirty" action="{{AppSubUrl}}/admin/config/test_mail" method="post">
|
2017-03-15 18:39:38 -04:00
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<div class="inline field ui left">
|
|
|
|
<div class="ui input">
|
2022-06-27 16:58:46 -04:00
|
|
|
<input type="email" name="email" placeholder="{{.locale.Tr "admin.config.test_email_placeholder"}}" size="29" required>
|
2017-03-15 18:39:38 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<button class="ui green button" id="test-mail-btn">{{.locale.Tr "admin.config.send_test_mail"}}</button>
|
2017-03-15 18:39:38 -04:00
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
</dl>
|
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.cache_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.cache_adapter"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.CacheAdapter}}</dd>
|
2019-05-06 10:35:11 -04:00
|
|
|
{{if eq .CacheAdapter "memory"}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.cache_interval"}}</dt>
|
|
|
|
<dd>{{.CacheInterval}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
2019-05-06 10:35:11 -04:00
|
|
|
{{end}}
|
2017-03-15 18:39:38 -04:00
|
|
|
{{if .CacheConn}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.cache_conn"}}</dt>
|
2019-08-26 06:47:41 -04:00
|
|
|
<dd><code>{{.CacheConn}}</code></dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.cache_item_ttl"}}</dt>
|
2019-08-26 06:47:41 -04:00
|
|
|
<dd><code>{{.CacheItemTTL}}</code></dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
{{end}}
|
|
|
|
</dl>
|
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.session_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.session_provider"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.SessionConfig.Provider}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.provider_config"}}</dt>
|
2019-11-28 12:35:41 -05:00
|
|
|
<dd><code>{{if .SessionConfig.ProviderConfig}}{{.SessionConfig.ProviderConfig}}{{else}}-{{end}}</code></dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.cookie_name"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.SessionConfig.CookieName}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.gc_interval_time"}}</dt>
|
|
|
|
<dd>{{.SessionConfig.Gclifetime}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.session_life_time"}}</dt>
|
|
|
|
<dd>{{.SessionConfig.Maxlifetime}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.https_only"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .SessionConfig.Secure}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
</dl>
|
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.picture_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.disable_gravatar"}}</dt>
|
2022-10-16 19:29:26 -04:00
|
|
|
<dd>
|
|
|
|
<div class="ui toggle checkbox">
|
2023-01-31 20:43:06 -05:00
|
|
|
<input type="checkbox" name="picture.disable_gravatar" version="{{.SystemSettings.GetVersion "picture.disable_gravatar"}}"{{if .SystemSettings.GetBool "picture.disable_gravatar"}} checked{{end}} title="{{.locale.Tr "admin.config.disable_gravatar"}}">
|
2022-10-16 19:29:26 -04:00
|
|
|
</div>
|
|
|
|
</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
<div class="ui divider"></div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.enable_federated_avatar"}}</dt>
|
2022-10-16 19:29:26 -04:00
|
|
|
<dd>
|
|
|
|
<div class="ui toggle checkbox">
|
2023-01-31 20:43:06 -05:00
|
|
|
<input type="checkbox" name="picture.enable_federated_avatar" version="{{.SystemSettings.GetVersion "picture.enable_federated_avatar"}}"{{if .SystemSettings.GetBool "picture.enable_federated_avatar"}} checked{{end}} title="{{.locale.Tr "admin.config.enable_federated_avatar"}}">
|
2022-10-16 19:29:26 -04:00
|
|
|
</div>
|
|
|
|
</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
</dl>
|
|
|
|
</div>
|
2016-08-10 14:01:42 -04:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.git_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.git_disable_diff_highlight"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if .Git.DisableDiffHighlight}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.git_max_diff_lines"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.Git.MaxGitDiffLines}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.git_max_diff_line_characters"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.Git.MaxGitDiffLineCharacters}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.git_max_diff_files"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd>{{.Git.MaxGitDiffFiles}}</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.git_gc_args"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd><code>{{.Git.GCArgs}}</code></dd>
|
2023-03-13 03:51:07 -04:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<div class="ui divider"></div>
|
2023-03-13 03:51:07 -04:00
|
|
|
|
|
|
|
<dt>{{.locale.Tr "admin.config.git_enable_reflogs"}}</dt>
|
|
|
|
<dd>{{if .Git.Reflog.Enabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
|
|
|
|
|
|
|
{{if .Git.Reflog.Enabled}}
|
|
|
|
<dt>{{.locale.Tr "admin.config.git_reflog_expiry_time"}}</dt>
|
|
|
|
<dd>{{.locale.Tr "tool.days" .Git.Reflog.Expiration}}</dd>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{.locale.Tr "admin.config.git_migrate_timeout"}}</dt>
|
|
|
|
<dd>{{.Git.Timeout.Migrate}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.git_mirror_timeout"}}</dt>
|
|
|
|
<dd>{{.Git.Timeout.Mirror}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.git_clone_timeout"}}</dt>
|
|
|
|
<dd>{{.Git.Timeout.Clone}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.git_pull_timeout"}}</dt>
|
|
|
|
<dd>{{.Git.Timeout.Pull}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
|
|
|
<dt>{{.locale.Tr "admin.config.git_gc_timeout"}}</dt>
|
|
|
|
<dd>{{.Git.Timeout.GC}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
2017-03-15 18:39:38 -04:00
|
|
|
</dl>
|
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
|
2017-03-15 18:39:38 -04:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "admin.config.log_config"}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2019-04-02 03:48:31 -04:00
|
|
|
{{range .Loggers.default.SubLogDescriptions}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.log_mode"}}</dt>
|
2019-04-02 03:48:31 -04:00
|
|
|
<dd>{{.Name}} ({{.Provider}})</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.log_config"}}</dt>
|
2017-03-15 18:39:38 -04:00
|
|
|
<dd><pre>{{.Config | JsonPrettyPrint}}</pre></dd>
|
|
|
|
{{end}}
|
2019-04-02 03:48:31 -04:00
|
|
|
<div class="ui divider"></div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.router_log_mode"}}</dt>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{if .DisableRouterLog}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dd>{{$.locale.Tr "admin.config.disabled_logger"}}</dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{else}}
|
2021-01-29 10:35:30 -05:00
|
|
|
{{if .Loggers.router.SubLogDescriptions}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dd>{{$.locale.Tr "admin.config.own_named_logger"}}</dd>
|
2021-01-29 10:35:30 -05:00
|
|
|
{{range .Loggers.router.SubLogDescriptions}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.log_mode"}}</dt>
|
2021-01-29 10:35:30 -05:00
|
|
|
<dd>{{.Name}} ({{.Provider}})</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.log_config"}}</dt>
|
2021-01-29 10:35:30 -05:00
|
|
|
<dd><pre>{{.Config | JsonPrettyPrint}}</pre></dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{end}}
|
|
|
|
{{else}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dd>{{$.locale.Tr "admin.config.routes_to_default_logger"}}</dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
<div class="ui divider"></div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.access_log_mode"}}</dt>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{if .EnableAccessLog}}
|
|
|
|
{{if .Loggers.access.SubLogDescriptions}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dd>{{$.locale.Tr "admin.config.own_named_logger"}}</dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{range .Loggers.access.SubLogDescriptions}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.log_mode"}}</dt>
|
2019-04-02 03:48:31 -04:00
|
|
|
<dd>{{.Name}} ({{.Provider}})</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.log_config"}}</dt>
|
2019-04-02 03:48:31 -04:00
|
|
|
<dd><pre>{{.Config | JsonPrettyPrint}}</pre></dd>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dd>{{$.locale.Tr "admin.config.routes_to_default_logger"}}</dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{end}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.access_log_template"}}</dt>
|
2019-04-02 03:48:31 -04:00
|
|
|
<dd><code>{{$.AccessLogTemplate}}</code></dd>
|
|
|
|
{{else}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dd>{{$.locale.Tr "admin.config.disabled_logger"}}</dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{end}}
|
|
|
|
<div class="ui divider"></div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.xorm_log_mode"}}</dt>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{if .EnableXORMLog}}
|
|
|
|
{{if .Loggers.xorm.SubLogDescriptions}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dd>{{$.locale.Tr "admin.config.own_named_logger"}}</dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{range .Loggers.xorm.SubLogDescriptions}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.log_mode"}}</dt>
|
2019-04-02 03:48:31 -04:00
|
|
|
<dd>{{.Name}} ({{.Provider}})</dd>
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.log_config"}}</dt>
|
2019-04-02 03:48:31 -04:00
|
|
|
<dd><pre>{{.Config | JsonPrettyPrint}}</pre></dd>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dd>{{$.locale.Tr "admin.config.routes_to_default_logger"}}</dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{end}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dt>{{$.locale.Tr "admin.config.xorm_log_sql"}}</dt>
|
2020-12-09 14:03:19 -05:00
|
|
|
<dd>{{if $.LogSQL}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{else}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<dd>{{$.locale.Tr "admin.config.disabled_logger"}}</dd>
|
2019-04-02 03:48:31 -04:00
|
|
|
{{end}}
|
2017-03-15 18:39:38 -04:00
|
|
|
</dl>
|
2015-12-07 17:30:52 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-21 01:48:10 -04:00
|
|
|
</div>
|
2015-12-07 17:30:52 -05:00
|
|
|
{{template "base/footer" .}}
|