123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512 |
- {{template "base/head" .}}
- <div class="admin config">
- <div class="ui container">
- <div class="ui grid">
- {{template "admin/navbar" .}}
- <div class="twelve wide column content">
- {{template "base/alert" .}}
- {{/* Server settings */}}
- <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.brand_name"}}</dt>
- <dd>{{.App.BrandName}}</dd>
- <dt>{{.i18n.Tr "admin.config.run_user"}}</dt>
- <dd>{{.App.RunUser}}</dd>
- <dt>{{.i18n.Tr "admin.config.run_mode"}}</dt>
- <dd>{{.App.RunMode}}</dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.server.external_url"}}</dt>
- <dd>{{.Server.ExternalURL}}</dd>
- <dt>{{.i18n.Tr "admin.config.server.domain"}}</dt>
- <dd>{{.Server.Domain}}</dd>
- <dt>{{.i18n.Tr "admin.config.server.protocol"}}</dt>
- <dd>{{.Server.Protocol}}</dd>
- <dt>{{.i18n.Tr "admin.config.server.http_addr"}}</dt>
- <dd>{{.Server.HTTPAddr}}</dd>
- <dt>{{.i18n.Tr "admin.config.server.http_port"}}</dt>
- <dd>{{.Server.HTTPPort}}</dd>
- <dt>{{.i18n.Tr "admin.config.server.cert_file"}}</dt>
- <dd><code>{{.Server.CertFile}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.server.key_file"}}</dt>
- <dd><code>{{.Server.KeyFile}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.server.tls_min_version"}}</dt>
- <dd>{{.Server.TLSMinVersion}}</dd>
- <dt>{{.i18n.Tr "admin.config.server.unix_socket_permission"}}</dt>
- <dd><code>{{.Server.UnixSocketPermission}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.server.local_root_url"}}</dt>
- <dd>{{.Server.LocalRootURL}}</dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.server.offline_mode"}}</dt>
- <dd><i class="fa fa{{if .Server.OfflineMode}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.server.disable_router_log"}}</dt>
- <dd><i class="fa fa{{if .Server.DisableRouterLog}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.server.enable_gzip"}}</dt>
- <dd><i class="fa fa{{if .Server.EnableGzip}}-check{{end}}-square-o"></i></dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.server.app_data_path"}}</dt>
- <dd><code>{{.Server.AppDataPath}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.server.load_assets_from_disk"}}</dt>
- <dd><i class="fa fa{{if .Server.LoadAssetsFromDisk}}-check{{end}}-square-o"></i></dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.server.landing_url"}}</dt>
- <dd><code>{{.Server.LandingURL}}</code></dd>
- </dl>
- </div>
- {{/* SSH settings */}}
- <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>
- <dd><i class="fa fa{{if not .SSH.Disabled}}-check{{end}}-square-o"></i></dd>
- {{if not .SSH.Disabled}}
- <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.root_path"}}</dt>
- <dd><code>{{.SSH.RootPath}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.ssh.keygen_path"}}</dt>
- <dd><code>{{.SSH.KeygenPath}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.ssh.key_test_path"}}</dt>
- <dd><code>{{.SSH.KeyTestPath}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.ssh.minimum_key_size_check"}}</dt>
- <dd><i class="fa fa{{if .SSH.MinimumKeySizeCheck}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.ssh.minimum_key_sizes"}}</dt>
- <dd><code>{{.SSH.MinimumKeySizes}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.ssh.rewrite_authorized_keys_at_start"}}</dt>
- <dd><i class="fa fa{{if .SSH.RewriteAuthorizedKeysAtStart}}-check{{end}}-square-o"></i></dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.ssh.start_builtin_server"}}</dt>
- <dd><i class="fa fa{{if .SSH.StartBuiltinServer}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.ssh.listen_host"}}</dt>
- <dd>{{.SSH.ListenHost}}</dd>
- <dt>{{.i18n.Tr "admin.config.ssh.listen_port"}}</dt>
- <dd>{{.SSH.ListenPort}}</dd>
- <dt>{{.i18n.Tr "admin.config.ssh.server_ciphers"}}</dt>
- <dd><code>{{.SSH.ServerCiphers}}</code></dd>
- {{end}}
- </dl>
- </div>
- {{/* Repository settings */}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.repo_config"}}
- </h4>
- <div class="ui attached table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.repo.root_path"}}</dt>
- <dd><code>{{.Repository.Root}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.repo.script_type"}}</dt>
- <dd><code>{{.Repository.ScriptType}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.repo.ansi_chatset"}}</dt>
- <dd>
- {{if .Repository.ANSICharset}}
- {{.Repository.AnsiCharset}}
- {{else}}
- <i>{{.i18n.Tr "admin.config.not_set"}}</i>
- {{end}}
- </dd>
- <dt>{{.i18n.Tr "admin.config.repo.force_private"}}</dt>
- <dd><i class="fa fa{{if .Repository.ForcePrivate}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.repo.max_creation_limit"}}</dt>
- <dd>{{.Repository.MaxCreationLimit}}</dd>
- <dt>{{.i18n.Tr "admin.config.repo.preferred_licenses"}}</dt>
- <dd>{{Join .Repository.PreferredLicenses ", "}}</dd>
- <dt>{{.i18n.Tr "admin.config.repo.disable_http_git"}}</dt>
- <dd><i class="fa fa{{if .Repository.DisableHTTPGit}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.repo.enable_local_path_migration"}}</dt>
- <dd><i class="fa fa{{if .Repository.EnableLocalPathMigration}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.repo.enable_raw_file_render_mode"}}</dt>
- <dd><i class="fa fa{{if .Repository.EnableRawFileRenderMode}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.repo.commits_fetch_concurrency"}}</dt>
- <dd>{{.Repository.CommitsFetchConcurrency}}</dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.repo.editor.line_wrap_extensions"}}</dt>
- <dd><code>{{.Repository.Editor.LineWrapExtensions}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.repo.editor.previewable_file_modes"}}</dt>
- <dd><code>{{.Repository.Editor.PreviewableFileModes}}</code></dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.repo.upload.enabled"}}</dt>
- <dd><i class="fa fa{{if .Repository.Upload.Enabled}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.repo.upload.temp_path"}}</dt>
- <dd><code>{{.Repository.Upload.TempPath}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.repo.upload.allowed_types"}}</dt>
- <dd><code>{{.Repository.Upload.AllowedTypes}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.repo.upload.file_max_size"}}</dt>
- <dd>{{.Repository.Upload.FileMaxSize}} MB</dd>
- <dt>{{.i18n.Tr "admin.config.repo.upload.max_files"}}</dt>
- <dd>{{.Repository.Upload.MaxFiles}}</dd>
- </dl>
- </div>
- {{/* Database settings */}}
- <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>{{.Database.Type}}</dd>
- <dt>{{.i18n.Tr "admin.config.db.host"}}</dt>
- <dd>{{.Database.Host}}</dd>
- <dt>{{.i18n.Tr "admin.config.db.name"}}</dt>
- <dd>{{.Database.Name}}</dd>
- <dt>{{.i18n.Tr "admin.config.db.user"}}</dt>
- <dd>{{.Database.User}}</dd>
- <dt>{{.i18n.Tr "admin.config.db.ssl_mode"}}</dt>
- <dd>{{.Database.SSLMode}} {{.i18n.Tr "admin.config.db.ssl_mode_helper"}}</dd>
- <dt>{{.i18n.Tr "admin.config.db.path"}}</dt>
- <dd><code>{{.Database.Path}}</code> {{.i18n.Tr "admin.config.db.path_helper"}}</dd>
- </dl>
- </div>
- {{/* Security settings */}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.security_config"}}
- </h4>
- <div class="ui attached table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.security.login_remember_days"}}</dt>
- <dd>{{.Security.LoginRememberDays}}</dd>
- <dt>{{.i18n.Tr "admin.config.security.cookie_remember_name"}}</dt>
- <dd>{{.Security.CookieRememberName}}</dd>
- <dt>{{.i18n.Tr "admin.config.security.cookie_username"}}</dt>
- <dd>{{.Security.CookieUsername}}</dd>
- <dt>{{.i18n.Tr "admin.config.security.cookie_secure"}}</dt>
- <dd><i class="fa fa{{if .Security.CookieSecure}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.security.enable_login_status_cookie"}}</dt>
- <dd><i class="fa fa{{if .Security.EnableLoginStatusCookie}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.security.login_status_cookie_name"}}</dt>
- <dd>{{.Security.LoginStatusCookieName}}</dd>
- </dl>
- </div>
- {{/* Email settings */}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.email_config"}}
- </h4>
- <div class="ui attached table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.email.enabled"}}</dt>
- <dd><i class="fa fa{{if .Email.Enabled}}-check{{end}}-square-o"></i></dd>
- {{if .Email.Enabled}}
- <dt>{{.i18n.Tr "admin.config.email.subject_prefix"}}</dt>
- <dd><code>{{.Email.SubjectPrefix}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.email.host"}}</dt>
- <dd>{{.Email.Host}}</dd>
- <dt>{{.i18n.Tr "admin.config.email.from"}}</dt>
- <dd>{{.Email.From}}</dd>
- <dt>{{.i18n.Tr "admin.config.email.user"}}</dt>
- <dd>{{.Email.User}}</dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.email.disable_helo"}}</dt>
- <dd><i class="fa fa{{if .Email.DisableHELO}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.email.helo_hostname"}}</dt>
- <dd>
- {{if .Email.HELOHostname}}
- {{.Email.HELOHostname}}
- {{else}}
- <i>{{.i18n.Tr "admin.config.not_set"}}</i>
- {{end}}
- </dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.email.skip_verify"}}</dt>
- <dd><i class="fa fa{{if .Email.SkipVerify}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.email.use_certificate"}}</dt>
- <dd><i class="fa fa{{if .Email.UseCertificate}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.email.cert_file"}}</dt>
- <dd><code>{{.Email.CertFile}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.email.key_file"}}</dt>
- <dd><code>{{.Email.KeyFile}}</code></dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.email.use_plain_text"}}</dt>
- <dd><i class="fa fa{{if .Email.UsePlainText}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.email.add_plain_text_alt"}}</dt>
- <dd><i class="fa fa{{if .Email.AddPlainTextAlt}}-check{{end}}-square-o"></i></dd>
- <div class="ui divider"></div>
- <form class="ui form" action="{{AppSubURL}}/admin/config/test_mail" method="post">
- {{.CSRFTokenHTML}}
- <div class="inline field ui left">
- <div class="ui input">
- <input type="email" name="email" required>
- </div>
- </div>
- <button class="ui green button" id="test-mail-btn">{{.i18n.Tr "admin.config.email.send_test_mail"}}</button>
- </form>
- {{end}}
- </dl>
- </div>
- {{/* Authentication settings */}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.auth_config"}}
- </h4>
- <div class="ui attached table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.auth.activate_code_lives"}}</dt>
- <dd>{{.Auth.ActivateCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd>
- <dt>{{.i18n.Tr "admin.config.auth.reset_password_code_lives"}}</dt>
- <dd>{{.Auth.ResetPasswordCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd>
- <dt>{{.i18n.Tr "admin.config.auth.require_email_confirm"}}</dt>
- <dd><i class="fa fa{{if .Auth.RequireEmailConfirmation}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.auth.require_sign_in_view"}}</dt>
- <dd><i class="fa fa{{if .Auth.RequireSigninView}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.auth.disable_registration"}}</dt>
- <dd><i class="fa fa{{if .Auth.DisableRegistration}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.auth.enable_registration_captcha"}}</dt>
- <dd><i class="fa fa{{if .Auth.EnableRegistrationCaptcha}}-check{{end}}-square-o"></i></dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.auth.enable_reverse_proxy_authentication"}}</dt>
- <dd><i class="fa fa{{if .Auth.EnableReverseProxyAuthentication}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.auth.enable_reverse_proxy_auto_registration"}}</dt>
- <dd><i class="fa fa{{if .Auth.EnableReverseProxyAutoRegistration}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.auth.reverse_proxy_authentication_header"}}</dt>
- <dd><code>{{.Auth.ReverseProxyAuthenticationHeader}}</code></dd>
- </dl>
- </div>
- {{/* User settings */}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.user_config"}}
- </h4>
- <div class="ui attached table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.user.enable_email_notify"}}</dt>
- <dd><i class="fa fa{{if .User.EnableEmailNotification}}-check{{end}}-square-o"></i></dd>
- </dl>
- </div>
- {{/* Session settings */}}
- <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>{{.Session.Provider}}</dd>
- <dt>{{.i18n.Tr "admin.config.session.provider_config"}}</dt>
- <dd><code>{{.Session.ProviderConfig}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.session.cookie_name"}}</dt>
- <dd>{{.Session.CookieName}}</dd>
- <dt>{{.i18n.Tr "admin.config.session.https_only"}}</dt>
- <dd><i class="fa fa{{if .Session.CookieSecure}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.session.gc_interval"}}</dt>
- <dd>{{.Session.GCInterval}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
- <dt>{{.i18n.Tr "admin.config.session.max_life_time"}}</dt>
- <dd>{{.Session.MaxLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
- <dt>{{.i18n.Tr "admin.config.session.csrf_cookie_name"}}</dt>
- <dd>{{.Session.CSRFCookieName}}</dd>
- </dl>
- </div>
- {{/* Cache settings */}}
- <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>{{.Cache.Adapter}}</dd>
- <dt>{{.i18n.Tr "admin.config.cache.interval"}}</dt>
- <dd>{{.Cache.Interval}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
- <dt>{{.i18n.Tr "admin.config.cache.host"}}</dt>
- <dd>
- {{if .CacheConn}}
- <code>{{.CacheConn}}</code>
- {{else}}
- <i>{{.i18n.Tr "admin.config.not_set"}}</i>
- {{end}}
- </dd>
- </dl>
- </div>
- {{/* Attachment settings */}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.attachment_config"}}
- </h4>
- <div class="ui attached table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.attachment.enabled"}}</dt>
- <dd><i class="fa fa{{if .Attachment.Enabled}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.attachment.path"}}</dt>
- <dd><code>{{.Attachment.Path}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.attachment.allowed_types"}}</dt>
- <dd><code>{{.Attachment.AllowedTypes}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.attachment.max_size"}}</dt>
- <dd>{{.Attachment.MaxSize}} MB</dd>
- <dt>{{.i18n.Tr "admin.config.attachment.max_files"}}</dt>
- <dd>{{.Attachment.MaxFiles}}</dd>
- </dl>
- </div>
- {{/* Release settings */}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.release_config"}}
- </h4>
- <div class="ui attached table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.release.attachment.enabled"}}</dt>
- <dd><i class="fa fa{{if .Release.Attachment.Enabled}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.release.attachment.allowed_types"}}</dt>
- <dd><code>{{.Release.Attachment.AllowedTypes}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.release.attachment.max_size"}}</dt>
- <dd>{{.Release.Attachment.MaxSize}} MB</dd>
- <dt>{{.i18n.Tr "admin.config.release.attachment.max_files"}}</dt>
- <dd>{{.Release.Attachment.MaxFiles}}</dd>
- </dl>
- </div>
- {{/* Picture settings */}}
- <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.picture.avatar_upload_path"}}</dt>
- <dd><code>{{.Picture.AvatarUploadPath}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.picture.repo_avatar_upload_path"}}</dt>
- <dd><code>{{.Picture.RepositoryAvatarUploadPath}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.picture.gravatar_source"}}</dt>
- <dd><code>{{.Picture.GravatarSource}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.picture.disable_gravatar"}}</dt>
- <dd><i class="fa fa{{if .Picture.DisableGravatar}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.picture.enable_federated_avatar"}}</dt>
- <dd><i class="fa fa{{if .Picture.EnableFederatedAvatar}}-check{{end}}-square-o"></i></dd>
- </dl>
- </div>
- {{/* HTTP settings */}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.http_config"}}
- </h4>
- <div class="ui attached table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.http.access_control_allow_origin"}}</dt>
- <dd>
- {{if .HTTP.AccessControlAllowOrigin}}
- <code>{{.HTTP.AccessControlAllowOrigin}}</code>
- {{else}}
- <i>{{.i18n.Tr "admin.config.not_set"}}</i>
- {{end}}
- </dd>
- </dl>
- </div>
- {{/* Mirror settings */}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.mirror_config"}}
- </h4>
- <div class="ui attached table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.mirror.default_interval"}}</dt>
- <dd>{{.Mirror.DefaultInterval}} {{.i18n.Tr "tool.raw_hours"}}</dd>
- </dl>
- </div>
- {{/* Webhook settings */}}
- <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.webhook.types"}}</dt>
- <dd><code>{{.Webhook.Types}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.webhook.deliver_timeout"}}</dt>
- <dd>{{.Webhook.DeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
- <dt>{{.i18n.Tr "admin.config.webhook.skip_tls_verify"}}</dt>
- <dd><i class="fa fa{{if .Webhook.SkipTLSVerify}}-check{{end}}-square-o"></i></dd>
- </dl>
- </div>
- {{/* Git settings */}}
- <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>
- <dd><i class="fa fa{{if .Git.DisableDiffHighlight}}-check{{end}}-square-o"></i></dd>
- <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>
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.config.log_config"}}
- </h4>
- <div class="ui attached log-config table segment">
- <dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.log_file_root_path"}}</dt>
- <dd><code>{{.LogRootPath}}</code></dd>
- </dl>
- <div class="ui divider"></div>
- <table class="ui very basic table">
- {{range .Loggers}}
- <tr>
- <td>{{$.i18n.Tr "admin.config.log_mode"}}</td>
- <td>{{.Mode}}</td>
- <tr>
- </tr>
- <td>{{$.i18n.Tr "admin.config.log_options"}}</td>
- <td><pre><code>{{.Config}}</code></pre></td>
- </tr>
- {{end}}
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- {{template "base/footer" .}}
|