config.tmpl 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. {{template "base/head" .}}
  2. <div class="admin monitor">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "admin/navbar" .}}
  6. <div class="twelve wide column content">
  7. {{template "base/alert" .}}
  8. <h4 class="ui top attached header">
  9. {{.i18n.Tr "admin.config.server_config"}}
  10. </h4>
  11. <div class="ui attached table segment">
  12. <dl class="dl-horizontal admin-dl-horizontal">
  13. <dt>{{.i18n.Tr "admin.config.app_name"}}</dt>
  14. <dd>{{AppName}}</dd>
  15. <dt>{{.i18n.Tr "admin.config.app_ver"}}</dt>
  16. <dd>{{AppVer}}</dd>
  17. <dt>{{.i18n.Tr "admin.config.app_url"}}</dt>
  18. <dd>{{.AppUrl}}</dd>
  19. <dt>{{.i18n.Tr "admin.config.domain"}}</dt>
  20. <dd>{{.Domain}}</dd>
  21. <dt>{{.i18n.Tr "admin.config.offline_mode"}}</dt>
  22. <dd><i class="fa fa{{if .OfflineMode}}-check{{end}}-square-o"></i></dd>
  23. <dt>{{.i18n.Tr "admin.config.disable_router_log"}}</dt>
  24. <dd><i class="fa fa{{if .DisableRouterLog}}-check{{end}}-square-o"></i></dd>
  25. <div class="ui divider"></div>
  26. <dt>{{.i18n.Tr "admin.config.run_user"}}</dt>
  27. <dd>{{.RunUser}}</dd>
  28. <dt>{{.i18n.Tr "admin.config.run_mode"}}</dt>
  29. <dd>{{.RunMode}}</dd>
  30. <div class="ui divider"></div>
  31. <dt>{{.i18n.Tr "admin.config.repo_root_path"}}</dt>
  32. <dd>{{.RepoRootPath}}</dd>
  33. <dt>{{.i18n.Tr "admin.config.static_file_root_path"}}</dt>
  34. <dd>{{.StaticRootPath}}</dd>
  35. <dt>{{.i18n.Tr "admin.config.log_file_root_path"}}</dt>
  36. <dd>{{.LogRootPath}}</dd>
  37. <dt>{{.i18n.Tr "admin.config.script_type"}}</dt>
  38. <dd>{{.ScriptType}}</dd>
  39. <dt>{{.i18n.Tr "admin.config.reverse_auth_user"}}</dt>
  40. <dd>{{.ReverseProxyAuthUser}}</dd>
  41. </dl>
  42. </div>
  43. <h4 class="ui top attached header">
  44. {{.i18n.Tr "admin.config.db_config"}}
  45. </h4>
  46. <div class="ui attached table segment">
  47. <dl class="dl-horizontal admin-dl-horizontal">
  48. <dt>{{.i18n.Tr "admin.config.db_type"}}</dt>
  49. <dd>{{.DbCfg.Type}}</dd>
  50. <dt>{{.i18n.Tr "admin.config.db_host"}}</dt>
  51. <dd>{{.DbCfg.Host}}</dd>
  52. <dt>{{.i18n.Tr "admin.config.db_name"}}</dt>
  53. <dd>{{.DbCfg.Name}}</dd>
  54. <dt>{{.i18n.Tr "admin.config.db_user"}}</dt>
  55. <dd>{{.DbCfg.User}}</dd>
  56. <dt>{{.i18n.Tr "admin.config.db_ssl_mode"}}</dt>
  57. <dd>{{.DbCfg.SSLMode}} {{.i18n.Tr "admin.config.db_ssl_mode_helper"}}</dd>
  58. <dt>{{.i18n.Tr "admin.config.db_path"}}</dt>
  59. <dd>{{.DbCfg.Path}} {{.i18n.Tr "admin.config.db_path_helper"}}</dd>
  60. </dl>
  61. </div>
  62. <h4 class="ui top attached header">
  63. {{.i18n.Tr "admin.config.service_config"}}
  64. </h4>
  65. <div class="ui attached table segment">
  66. <dl class="dl-horizontal admin-dl-horizontal">
  67. <dt>{{.i18n.Tr "admin.config.register_email_confirm"}}</dt>
  68. <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd>
  69. <dt>{{.i18n.Tr "admin.config.disable_register"}}</dt>
  70. <dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd>
  71. <dt>{{.i18n.Tr "admin.config.show_registration_button"}}</dt>
  72. <dd><i class="fa fa{{if .Service.ShowRegistrationButton}}-check{{end}}-square-o"></i></dd>
  73. <dt>{{.i18n.Tr "admin.config.require_sign_in_view"}}</dt>
  74. <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd>
  75. <dt>{{.i18n.Tr "admin.config.enable_cache_avatar"}}</dt>
  76. <dd><i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></dd>
  77. <dt>{{.i18n.Tr "admin.config.mail_notify"}}</dt>
  78. <dd><i class="fa fa{{if .Service.EnableNotifyMail}}-check{{end}}-square-o"></i></dd>
  79. <dt>{{.i18n.Tr "admin.config.disable_key_size_check"}}</dt>
  80. <dd><i class="fa fa{{if .Service.DisableMinimumKeySizeCheck}}-check{{end}}-square-o"></i></dd>
  81. <dt>{{.i18n.Tr "admin.config.enable_captcha"}}</dt>
  82. <dd><i class="fa fa{{if .Service.EnableCaptcha}}-check{{end}}-square-o"></i></dd>
  83. <div class="ui divider"></div>
  84. <dt>{{.i18n.Tr "admin.config.active_code_lives"}}</dt>
  85. <dd>{{.Service.ActiveCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd>
  86. <dt>{{.i18n.Tr "admin.config.reset_password_code_lives"}}</dt>
  87. <dd>{{.Service.ResetPwdCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd>
  88. </dl>
  89. </div>
  90. <h4 class="ui top attached header">
  91. {{.i18n.Tr "admin.config.webhook_config"}}
  92. </h4>
  93. <div class="ui attached table segment">
  94. <dl class="dl-horizontal admin-dl-horizontal">
  95. <dt>{{.i18n.Tr "admin.config.queue_length"}}</dt>
  96. <dd>{{.Webhook.QueueLength}}</dd>
  97. <dt>{{.i18n.Tr "admin.config.deliver_timeout"}}</dt>
  98. <dd>{{.Webhook.DeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
  99. <dt>{{.i18n.Tr "admin.config.skip_tls_verify"}}</dt>
  100. <dd><i class="fa fa{{if .Webhook.SkipTLSVerify}}-check{{end}}-square-o"></i></dd>
  101. </dl>
  102. </div>
  103. <h4 class="ui top attached header">
  104. {{.i18n.Tr "admin.config.mailer_config"}}
  105. </h4>
  106. <div class="ui attached table segment">
  107. <dl class="dl-horizontal admin-dl-horizontal">
  108. <dt>{{.i18n.Tr "admin.config.mailer_enabled"}}</dt>
  109. <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
  110. {{if .MailerEnabled}}<dt>{{.i18n.Tr "admin.config.mailer_name"}}</dt>
  111. <dd>{{.Mailer.Name}}</dd>
  112. <dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt>
  113. <dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd>
  114. <dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt>
  115. <dd>{{.Mailer.Host}}</dd>
  116. <dt>{{.i18n.Tr "admin.config.mailer_user"}}</dt>
  117. <dd>{{.Mailer.User}}</dd>{{end}}
  118. </dl>
  119. </div>
  120. <h4 class="ui top attached header">
  121. {{.i18n.Tr "admin.config.cache_config"}}
  122. </h4>
  123. <div class="ui attached table segment">
  124. <dl class="dl-horizontal admin-dl-horizontal">
  125. <dt>{{.i18n.Tr "admin.config.cache_adapter"}}</dt>
  126. <dd>{{.CacheAdapter}}</dd>
  127. <dt>{{.i18n.Tr "admin.config.cache_interval"}}</dt>
  128. <dd>{{.CacheInternal}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
  129. <dt>{{.i18n.Tr "admin.config.cache_conn"}}</dt>
  130. <dd><pre>{{.CacheConn}}</pre></dd>
  131. </dl>
  132. </div>
  133. <h4 class="ui top attached header">
  134. {{.i18n.Tr "admin.config.session_config"}}
  135. </h4>
  136. <div class="ui attached table segment">
  137. <dl class="dl-horizontal admin-dl-horizontal">
  138. <dt>{{.i18n.Tr "admin.config.session_provider"}}</dt>
  139. <dd>{{.SessionConfig.Provider}}</dd>
  140. <dt>{{.i18n.Tr "admin.config.provider_config"}}</dt>
  141. <dd><pre>{{.SessionConfig.ProviderConfig}}</pre></dd>
  142. <dt>{{.i18n.Tr "admin.config.cookie_name"}}</dt>
  143. <dd>{{.SessionConfig.CookieName}}</dd>
  144. <dt>{{.i18n.Tr "admin.config.gc_interval_time"}}</dt>
  145. <dd>{{.SessionConfig.Gclifetime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
  146. <dt>{{.i18n.Tr "admin.config.session_life_time"}}</dt>
  147. <dd>{{.SessionConfig.Maxlifetime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
  148. <dt>{{.i18n.Tr "admin.config.https_only"}}</dt>
  149. <dd><i class="fa fa{{if .SessionConfig.Secure}}-check{{end}}-square-o"></i></dd>
  150. <dt>{{.i18n.Tr "admin.config.cookie_life_time"}}</dt>
  151. <dd>{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}</dd>
  152. </dl>
  153. </div>
  154. <h4 class="ui top attached header">
  155. {{.i18n.Tr "admin.config.picture_config"}}
  156. </h4>
  157. <div class="ui attached table segment">
  158. <dl class="dl-horizontal admin-dl-horizontal">
  159. <dt>{{.i18n.Tr "admin.config.picture_service"}}</dt>
  160. <dd>{{.PictureService}}</dd>
  161. <dt>{{.i18n.Tr "admin.config.disable_gravatar"}}</dt>
  162. <dd><i class="fa fa{{if .DisableGravatar}}-check{{end}}-square-o"></i></dd>
  163. </dl>
  164. </div>
  165. <h4 class="ui top attached header">
  166. {{.i18n.Tr "admin.config.log_config"}}
  167. </h4>
  168. <div class="ui attached table segment">
  169. <dl class="dl-horizontal admin-dl-horizontal">
  170. {{range .Loggers}}
  171. <dt>{{$.i18n.Tr "admin.config.log_mode"}}</dt>
  172. <dd>{{.Mode}}</dd>
  173. <dt>{{$.i18n.Tr "admin.config.log_config"}}</dt>
  174. <dd><pre>{{.Config}}</pre></dd>
  175. {{end}}
  176. </dl>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. {{template "base/footer" .}}