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