{{template "base/head" .}}
{{template "admin/navbar" .}}
{{template "base/alert" .}} {{/* Server settings */}}

{{.i18n.Tr "admin.config.server_config"}}

{{.i18n.Tr "admin.config.brand_name"}}
{{.App.BrandName}}
{{.i18n.Tr "admin.config.run_user"}}
{{.App.RunUser}}
{{.i18n.Tr "admin.config.run_mode"}}
{{.App.RunMode}}
{{.i18n.Tr "admin.config.server.external_url"}}
{{.Server.ExternalURL}}
{{.i18n.Tr "admin.config.server.domain"}}
{{.Server.Domain}}
{{.i18n.Tr "admin.config.server.protocol"}}
{{.Server.Protocol}}
{{.i18n.Tr "admin.config.server.http_addr"}}
{{.Server.HTTPAddr}}
{{.i18n.Tr "admin.config.server.http_port"}}
{{.Server.HTTPPort}}
{{.i18n.Tr "admin.config.server.cert_file"}}
{{.Server.CertFile}}
{{.i18n.Tr "admin.config.server.key_file"}}
{{.Server.KeyFile}}
{{.i18n.Tr "admin.config.server.tls_min_version"}}
{{.Server.TLSMinVersion}}
{{.i18n.Tr "admin.config.server.unix_socket_permission"}}
{{.Server.UnixSocketPermission}}
{{.i18n.Tr "admin.config.server.local_root_url"}}
{{.Server.LocalRootURL}}
{{.i18n.Tr "admin.config.server.offline_mode"}}
{{.i18n.Tr "admin.config.server.disable_router_log"}}
{{.i18n.Tr "admin.config.server.enable_gzip"}}
{{.i18n.Tr "admin.config.server.app_data_path"}}
{{.Server.AppDataPath}}
{{.i18n.Tr "admin.config.server.load_assets_from_disk"}}
{{.i18n.Tr "admin.config.server.landing_url"}}
{{.Server.LandingURL}}
{{/* SSH settings */}}

{{.i18n.Tr "admin.config.ssh_config"}}

{{.i18n.Tr "admin.config.ssh.enabled"}}
{{if not .SSH.Disabled}}
{{.i18n.Tr "admin.config.ssh.domain"}}
{{.SSH.Domain}}
{{.i18n.Tr "admin.config.ssh.port"}}
{{.SSH.Port}}
{{.i18n.Tr "admin.config.ssh.root_path"}}
{{.SSH.RootPath}}
{{.i18n.Tr "admin.config.ssh.keygen_path"}}
{{.SSH.KeygenPath}}
{{.i18n.Tr "admin.config.ssh.key_test_path"}}
{{.SSH.KeyTestPath}}
{{.i18n.Tr "admin.config.ssh.minimum_key_size_check"}}
{{.i18n.Tr "admin.config.ssh.minimum_key_sizes"}}
{{.SSH.MinimumKeySizes}}
{{.i18n.Tr "admin.config.ssh.rewrite_authorized_keys_at_start"}}
{{.i18n.Tr "admin.config.ssh.start_builtin_server"}}
{{.i18n.Tr "admin.config.ssh.listen_host"}}
{{.SSH.ListenHost}}
{{.i18n.Tr "admin.config.ssh.listen_port"}}
{{.SSH.ListenPort}}
{{.i18n.Tr "admin.config.ssh.server_ciphers"}}
{{.SSH.ServerCiphers}}
{{end}}
{{/* Repository settings */}}

{{.i18n.Tr "admin.config.repo_config"}}

{{.i18n.Tr "admin.config.repo.root_path"}}
{{.Repository.Root}}
{{.i18n.Tr "admin.config.repo.script_type"}}
{{.Repository.ScriptType}}
{{.i18n.Tr "admin.config.repo.ansi_chatset"}}
{{if .Repository.ANSICharset}} {{.Repository.AnsiCharset}} {{else}} {{.i18n.Tr "admin.config.not_set"}} {{end}}
{{.i18n.Tr "admin.config.repo.force_private"}}
{{.i18n.Tr "admin.config.repo.max_creation_limit"}}
{{.Repository.MaxCreationLimit}}
{{.i18n.Tr "admin.config.repo.preferred_licenses"}}
{{Join .Repository.PreferredLicenses ", "}}
{{.i18n.Tr "admin.config.repo.disable_http_git"}}
{{.i18n.Tr "admin.config.repo.enable_local_path_migration"}}
{{.i18n.Tr "admin.config.repo.enable_raw_file_render_mode"}}
{{.i18n.Tr "admin.config.repo.commits_fetch_concurrency"}}
{{.Repository.CommitsFetchConcurrency}}
{{.i18n.Tr "admin.config.repo.editor.line_wrap_extensions"}}
{{.Repository.Editor.LineWrapExtensions}}
{{.i18n.Tr "admin.config.repo.editor.previewable_file_modes"}}
{{.Repository.Editor.PreviewableFileModes}}
{{.i18n.Tr "admin.config.repo.upload.enabled"}}
{{.i18n.Tr "admin.config.repo.upload.temp_path"}}
{{.Repository.Upload.TempPath}}
{{.i18n.Tr "admin.config.repo.upload.allowed_types"}}
{{.Repository.Upload.AllowedTypes}}
{{.i18n.Tr "admin.config.repo.upload.file_max_size"}}
{{.Repository.Upload.FileMaxSize}} MB
{{.i18n.Tr "admin.config.repo.upload.max_files"}}
{{.Repository.Upload.MaxFiles}}
{{/* Database settings */}}

{{.i18n.Tr "admin.config.db_config"}}

{{.i18n.Tr "admin.config.db.type"}}
{{.Database.Type}}
{{.i18n.Tr "admin.config.db.host"}}
{{.Database.Host}}
{{.i18n.Tr "admin.config.db.name"}}
{{.Database.Name}}
{{.i18n.Tr "admin.config.db.user"}}
{{.Database.User}}
{{.i18n.Tr "admin.config.db.ssl_mode"}}
{{.Database.SSLMode}} {{.i18n.Tr "admin.config.db.ssl_mode_helper"}}
{{.i18n.Tr "admin.config.db.path"}}
{{.Database.Path}} {{.i18n.Tr "admin.config.db.path_helper"}}
{{/* Security settings */}}

{{.i18n.Tr "admin.config.security_config"}}

{{.i18n.Tr "admin.config.security.login_remember_days"}}
{{.Security.LoginRememberDays}}
{{.i18n.Tr "admin.config.security.cookie_remember_name"}}
{{.Security.CookieRememberName}}
{{.i18n.Tr "admin.config.security.cookie_username"}}
{{.Security.CookieUsername}}
{{.i18n.Tr "admin.config.security.cookie_secure"}}
{{.i18n.Tr "admin.config.security.enable_login_status_cookie"}}
{{.i18n.Tr "admin.config.security.login_status_cookie_name"}}
{{.Security.LoginStatusCookieName}}
{{/* Email settings */}}

{{.i18n.Tr "admin.config.email_config"}}

{{.i18n.Tr "admin.config.email.enabled"}}
{{if .Email.Enabled}}
{{.i18n.Tr "admin.config.email.subject_prefix"}}
{{.Email.SubjectPrefix}}
{{.i18n.Tr "admin.config.email.host"}}
{{.Email.Host}}
{{.i18n.Tr "admin.config.email.from"}}
{{.Email.From}}
{{.i18n.Tr "admin.config.email.user"}}
{{.Email.User}}
{{.i18n.Tr "admin.config.email.disable_helo"}}
{{.i18n.Tr "admin.config.email.helo_hostname"}}
{{if .Email.HELOHostname}} {{.Email.HELOHostname}} {{else}} {{.i18n.Tr "admin.config.not_set"}} {{end}}
{{.i18n.Tr "admin.config.email.skip_verify"}}
{{.i18n.Tr "admin.config.email.use_certificate"}}
{{.i18n.Tr "admin.config.email.cert_file"}}
{{.Email.CertFile}}
{{.i18n.Tr "admin.config.email.key_file"}}
{{.Email.KeyFile}}
{{.i18n.Tr "admin.config.email.use_plain_text"}}
{{.i18n.Tr "admin.config.email.add_plain_text_alt"}}
{{.CSRFTokenHTML}}
{{end}}
{{/* Authentication settings */}}

{{.i18n.Tr "admin.config.auth_config"}}

{{.i18n.Tr "admin.config.auth.activate_code_lives"}}
{{.Auth.ActivateCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
{{.i18n.Tr "admin.config.auth.reset_password_code_lives"}}
{{.Auth.ResetPasswordCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}
{{.i18n.Tr "admin.config.auth.require_email_confirm"}}
{{.i18n.Tr "admin.config.auth.require_sign_in_view"}}
{{.i18n.Tr "admin.config.auth.disable_registration"}}
{{.i18n.Tr "admin.config.auth.enable_registration_captcha"}}
{{.i18n.Tr "admin.config.auth.enable_reverse_proxy_authentication"}}
{{.i18n.Tr "admin.config.auth.enable_reverse_proxy_auto_registration"}}
{{.i18n.Tr "admin.config.auth.reverse_proxy_authentication_header"}}
{{.Auth.ReverseProxyAuthenticationHeader}}
{{/* User settings */}}

{{.i18n.Tr "admin.config.user_config"}}

{{.i18n.Tr "admin.config.user.enable_email_notify"}}
{{/* Session settings */}}

{{.i18n.Tr "admin.config.session_config"}}

{{.i18n.Tr "admin.config.session_provider"}}
{{.Session.Provider}}
{{.i18n.Tr "admin.config.session.provider_config"}}
{{.Session.ProviderConfig}}
{{.i18n.Tr "admin.config.session.cookie_name"}}
{{.Session.CookieName}}
{{.i18n.Tr "admin.config.session.https_only"}}
{{.i18n.Tr "admin.config.session.gc_interval"}}
{{.Session.GCInterval}} {{.i18n.Tr "tool.raw_seconds"}}
{{.i18n.Tr "admin.config.session.max_life_time"}}
{{.Session.MaxLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}
{{.i18n.Tr "admin.config.session.csrf_cookie_name"}}
{{.Session.CSRFCookieName}}
{{/* Cache settings */}}

{{.i18n.Tr "admin.config.cache_config"}}

{{.i18n.Tr "admin.config.cache.adapter"}}
{{.Cache.Adapter}}
{{.i18n.Tr "admin.config.cache.interval"}}
{{.Cache.Interval}} {{.i18n.Tr "tool.raw_seconds"}}
{{.i18n.Tr "admin.config.cache.host"}}
{{if .CacheConn}} {{.CacheConn}} {{else}} {{.i18n.Tr "admin.config.not_set"}} {{end}}
{{/* Attachment settings */}}

{{.i18n.Tr "admin.config.attachment_config"}}

{{.i18n.Tr "admin.config.attachment.enabled"}}
{{.i18n.Tr "admin.config.attachment.path"}}
{{.Attachment.Path}}
{{.i18n.Tr "admin.config.attachment.allowed_types"}}
{{.Attachment.AllowedTypes}}
{{.i18n.Tr "admin.config.attachment.max_size"}}
{{.Attachment.MaxSize}} MB
{{.i18n.Tr "admin.config.attachment.max_files"}}
{{.Attachment.MaxFiles}}
{{/* Release settings */}}

{{.i18n.Tr "admin.config.release_config"}}

{{.i18n.Tr "admin.config.release.attachment.enabled"}}
{{.i18n.Tr "admin.config.release.attachment.allowed_types"}}
{{.Release.Attachment.AllowedTypes}}
{{.i18n.Tr "admin.config.release.attachment.max_size"}}
{{.Release.Attachment.MaxSize}} MB
{{.i18n.Tr "admin.config.release.attachment.max_files"}}
{{.Release.Attachment.MaxFiles}}
{{/* Picture settings */}}

{{.i18n.Tr "admin.config.picture_config"}}

{{.i18n.Tr "admin.config.picture.avatar_upload_path"}}
{{.Picture.AvatarUploadPath}}
{{.i18n.Tr "admin.config.picture.repo_avatar_upload_path"}}
{{.Picture.RepositoryAvatarUploadPath}}
{{.i18n.Tr "admin.config.picture.gravatar_source"}}
{{.Picture.GravatarSource}}
{{.i18n.Tr "admin.config.picture.disable_gravatar"}}
{{.i18n.Tr "admin.config.picture.enable_federated_avatar"}}
{{/* HTTP settings */}}

{{.i18n.Tr "admin.config.http_config"}}

{{.i18n.Tr "admin.config.http.access_control_allow_origin"}}
{{if .HTTP.AccessControlAllowOrigin}} {{.HTTP.AccessControlAllowOrigin}} {{else}} {{.i18n.Tr "admin.config.not_set"}} {{end}}
{{/* Mirror settings */}}

{{.i18n.Tr "admin.config.mirror_config"}}

{{.i18n.Tr "admin.config.mirror.default_interval"}}
{{.Mirror.DefaultInterval}} {{.i18n.Tr "tool.raw_hours"}}
{{/* Webhook settings */}}

{{.i18n.Tr "admin.config.webhook_config"}}

{{.i18n.Tr "admin.config.webhook.types"}}
{{.Webhook.Types}}
{{.i18n.Tr "admin.config.webhook.deliver_timeout"}}
{{.Webhook.DeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}
{{.i18n.Tr "admin.config.webhook.skip_tls_verify"}}
{{/* Git settings */}}

{{.i18n.Tr "admin.config.git_config"}}

{{.i18n.Tr "admin.config.git.disable_diff_highlight"}}
{{.i18n.Tr "admin.config.git.max_diff_lines"}}
{{.Git.MaxGitDiffLines}}
{{.i18n.Tr "admin.config.git.max_diff_line_characters"}}
{{.Git.MaxGitDiffLineCharacters}}
{{.i18n.Tr "admin.config.git.max_diff_files"}}
{{.Git.MaxGitDiffFiles}}
{{.i18n.Tr "admin.config.git.gc_args"}}
{{.Git.GCArgs}}
{{.i18n.Tr "admin.config.git.migrate_timeout"}}
{{.Git.Timeout.Migrate}} {{.i18n.Tr "tool.raw_seconds"}}
{{.i18n.Tr "admin.config.git.mirror_timeout"}}
{{.Git.Timeout.Mirror}} {{.i18n.Tr "tool.raw_seconds"}}
{{.i18n.Tr "admin.config.git.clone_timeout"}}
{{.Git.Timeout.Clone}} {{.i18n.Tr "tool.raw_seconds"}}
{{.i18n.Tr "admin.config.git.pull_timeout"}}
{{.Git.Timeout.Pull}} {{.i18n.Tr "tool.raw_seconds"}}
{{.i18n.Tr "admin.config.git.gc_timeout"}}
{{.Git.Timeout.GC}} {{.i18n.Tr "tool.raw_seconds"}}

{{.i18n.Tr "admin.config.log_config"}}

{{.i18n.Tr "admin.config.log_file_root_path"}}
{{.LogRootPath}}
{{range .Loggers}} {{end}}
{{$.i18n.Tr "admin.config.log_mode"}} {{.Mode}}
{{$.i18n.Tr "admin.config.log_options"}}
{{.Config}}
{{template "base/footer" .}}