123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- {{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" .}}
- <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>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.log_file_root_path"}}</dt>
- <dd><code>{{.LogRootPath}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.reverse_auth_user"}}</dt>
- <dd><code>{{.ReverseProxyAuthUser}}</code></dd>
- </dl>
- </div>
- <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 Configuration -->
- <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>{{.RepoRootPath}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.script_type"}}</dt>
- <dd>{{.ScriptType}}</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.max_creation_limit"}}</dt>
- <dd>{{.Repository.MaxCreationLimit}}</dd>
- <dt>{{.i18n.Tr "admin.config.preferred_licenses"}}</dt>
- <dd>{{Join .Repository.PreferredLicenses ", "}}</dd>
- <dt>{{.i18n.Tr "admin.config.disable_http_git"}}</dt>
- <dd><i class="fa fa{{if .Repository.DisableHTTPGit}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.enable_local_path_migration"}}</dt>
- <dd><i class="fa fa{{if .Repository.EnableLocalPathMigration}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.commits_fetch_concurrency"}}</dt>
- <dd>{{.Repository.CommitsFetchConcurrency}}</dd>
- </dl>
- </div>
- <!-- HTTP Configuration -->
- <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>
- <!-- Database Configuration -->
- <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>
- <dt>{{.i18n.Tr "admin.config.db_host"}}</dt>
- <dd>{{.DbCfg.Host}}</dd>
- <dt>{{.i18n.Tr "admin.config.db_name"}}</dt>
- <dd>{{.DbCfg.Name}}</dd>
- <dt>{{.i18n.Tr "admin.config.db_user"}}</dt>
- <dd>{{.DbCfg.User}}</dd>
- <dt>{{.i18n.Tr "admin.config.db_ssl_mode"}}</dt>
- <dd>{{.DbCfg.SSLMode}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}</dd>
- <dt>{{.i18n.Tr "admin.config.db_path"}}</dt>
- <dd>{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}</dd>
- </dl>
- </div>
- <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>
- <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.disable_register"}}</dt>
- <dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.show_registration_button"}}</dt>
- <dd><i class="fa fa{{if .Service.ShowRegistrationButton}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.require_sign_in_view"}}</dt>
- <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.mail_notify"}}</dt>
- <dd><i class="fa fa{{if .Service.EnableNotifyMail}}-check{{end}}-square-o"></i></dd>
- {{/*<dt>{{.i18n.Tr "admin.config.disable_key_size_check"}}</dt>
- <dd><i class="fa fa{{if .Service.DisableMinimumKeySizeCheck}}-check{{end}}-square-o"></i></dd>*/}}
- <dt>{{.i18n.Tr "admin.config.enable_captcha"}}</dt>
- <dd><i class="fa fa{{if .Service.EnableCaptcha}}-check{{end}}-square-o"></i></dd>
- <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>
- <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>
- <dd><i class="fa fa{{if .Webhook.SkipTLSVerify}}-check{{end}}-square-o"></i></dd>
- </dl>
- </div>
- <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>
- <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
- {{if .MailerEnabled}}
- <dt>{{.i18n.Tr "admin.config.mailer_subject_prefix"}}</dt>
- <dd><code>{{.Mailer.SubjectPrefix}}</code></dd>
- <dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt>
- <dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt>
- <dd>{{.Mailer.Host}}</dd>
- <dt>{{.i18n.Tr "admin.config.mailer_user"}}</dt>
- <dd>{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}</dd><br>
- <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.send_test_mail"}}</button>
- </form>
- {{end}}
- </dl>
- </div>
- <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>
- <dt>{{.i18n.Tr "admin.config.cache_interval"}}</dt>
- <dd>{{.CacheInterval}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
- {{if .CacheConn}}
- <dt>{{.i18n.Tr "admin.config.cache_conn"}}</dt>
- <dd><code>{{.CacheConn}}</code></dd>
- {{end}}
- </dl>
- </div>
- <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>
- <dd><code>{{.SessionConfig.ProviderConfig}}</code></dd>
- <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>
- <dd><i class="fa fa{{if .SessionConfig.Secure}}-check{{end}}-square-o"></i></dd>
- <dt>{{.i18n.Tr "admin.config.cookie_life_time"}}</dt>
- <dd>{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
- </dl>
- </div>
- <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>
- <dd><i class="fa fa{{if .DisableGravatar}}-check{{end}}-square-o"></i></dd>
- <div class="ui divider"></div>
- <dt>{{.i18n.Tr "admin.config.enable_federated_avatar"}}</dt>
- <dd><i class="fa fa{{if .EnableFederatedAvatar}}-check{{end}}-square-o"></i></dd>
- </dl>
- </div>
- <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 segment">
- <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" .}}
|