config.tmpl 14 KB

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