You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

231 lines
9.2 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container" data-page="admin">
  4. {{template "admin/nav" .}}
  5. <div id="admin-container" class="col-md-10">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. Server Configuration
  9. </div>
  10. <div class="panel-body">
  11. <dl class="dl-horizontal admin-dl-horizontal">
  12. <dt>Application Name</dt>
  13. <dd>{{AppName}}</dd>
  14. <dt>Application Version</dt>
  15. <dd>{{AppVer}}</dd>
  16. <dt>Application URL</dt>
  17. <dd>{{.AppUrl}}</dd>
  18. <dt>Domain</dt>
  19. <dd>{{.Domain}}</dd>
  20. <dt>Offline Mode</dt>
  21. <dd><i class="fa fa{{if .OfflineMode}}-check{{end}}-square-o"></i></dd>
  22. <dt>Disable Router Log</dt>
  23. <dd><i class="fa fa{{if .DisableRouterLog}}-check{{end}}-square-o"></i></dd>
  24. <hr/>
  25. <dt>Run User</dt>
  26. <dd>{{.RunUser}}</dd>
  27. <dt>Run Mode</dt>
  28. <dd>{{.RunMode}}</dd>
  29. <hr/>
  30. <dt>Repository Root Path</dt>
  31. <dd>{{.RepoRootPath}}</dd>
  32. <dt>Static File Root Path</dt>
  33. <dd>{{.StaticRootPath}}</dd>
  34. <dt>Log File Root Path</dt>
  35. <dd>{{.LogRootPath}}</dd>
  36. <dt>Script Type</dt>
  37. <dd>{{.ScriptType}}</dd>
  38. <dt>Reverse Authentication User</dt>
  39. <dd>{{.ReverseProxyAuthUser}}</dd>
  40. </dl>
  41. </div>
  42. </div>
  43. <div class="panel panel-default">
  44. <div class="panel-heading">
  45. Database Configuration
  46. </div>
  47. <div class="panel-body">
  48. <dl class="dl-horizontal admin-dl-horizontal">
  49. <dt>Type</dt>
  50. <dd>{{.DbCfg.Type}}</dd>
  51. <dt>Host</dt>
  52. <dd>{{.DbCfg.Host}}</dd>
  53. <dt>Name</dt>
  54. <dd>{{.DbCfg.Name}}</dd>
  55. <dt>User</dt>
  56. <dd>{{.DbCfg.User}}</dd>
  57. <dt>SslMode</dt>
  58. <dd>{{.DbCfg.SslMode}} (for "postgres" only)</dd>
  59. <dt>Path</dt>
  60. <dd>{{.DbCfg.Path}} (for "sqlite3" only)</dd>
  61. </dl>
  62. </div>
  63. </div>
  64. <div class="panel panel-default">
  65. <div class="panel-heading">
  66. Service Configuration
  67. </div>
  68. <div class="panel-body">
  69. <dl class="dl-horizontal admin-dl-horizontal">
  70. <dt>Register Email Confirmation</dt>
  71. <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd>
  72. <dt>Disable Registration</dt>
  73. <dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd>
  74. <dt>Require Sign In View</dt>
  75. <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd>
  76. <dt>Mail Notification</dt>
  77. <dd><i class="fa fa{{if .Service.EnableNotifyMail}}-check{{end}}-square-o"></i></dd>
  78. <dt>Enable Cache Avatar</dt>
  79. <dd><i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></dd>
  80. <hr/>
  81. <dt>Active Code Lives</dt>
  82. <dd>{{.Service.ActiveCodeLives}} minutes</dd>
  83. <dt>Reset Password Code Lives</dt>
  84. <dd>{{.Service.ResetPwdCodeLives}} minutes</dd>
  85. </dl>
  86. </div>
  87. </div>
  88. <div class="panel panel-default">
  89. <div class="panel-heading">
  90. Webhook Configuration
  91. </div>
  92. <div class="panel-body">
  93. <dl class="dl-horizontal admin-dl-horizontal">
  94. <dt>Task Interval</dt>
  95. <dd>{{.WebhookTaskInterval}} minutes</dd>
  96. <dt>Deliver Timeout</dt>
  97. <dd>{{.WebhookDeliverTimeout}} seconds</dd>
  98. </dl>
  99. </div>
  100. </div>
  101. <div class="panel panel-default">
  102. <div class="panel-heading">
  103. Mailer Configuration
  104. </div>
  105. <div class="panel-body">
  106. <dl class="dl-horizontal admin-dl-horizontal">
  107. <dt>Enabled</dt>
  108. <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
  109. {{if .MailerEnabled}}<dt>Name</dt>
  110. <dd>{{.Mailer.Name}}</dd>
  111. <dt>Host</dt>
  112. <dd>{{.Mailer.Host}}</dd>
  113. <dt>User</dt>
  114. <dd>{{.Mailer.User}}</dd>{{end}}
  115. </dl>
  116. </div>
  117. </div>
  118. <div class="panel panel-default">
  119. <div class="panel-heading">
  120. OAuth Configuration
  121. </div>
  122. <div class="panel-body">
  123. <dl class="dl-horizontal admin-dl-horizontal">
  124. <dt>Enabled</dt>
  125. <dd><i class="fa fa{{if .OauthEnabled}}-check{{end}}-square-o"></i></dd>
  126. {{if .OauthEnabled}}<dt>GitHub</dt>
  127. <dd><i class="fa fa{{if .Oauther.GitHub}}-check{{end}}-square-o"></i></dd>
  128. <dt>Google</dt>
  129. <dd><i class="fa fa{{if .Oauther.Google}}-check{{end}}-square-o"></i></dd>
  130. <dt>Tencent QQ</dt>
  131. <dd><i class="fa fa{{if .Oauther.Tencent}}-check{{end}}-square-o"></i></dd>
  132. <dt>Weibo</dt>
  133. <dd><i class="fa fa{{if .Oauther.Weibo}}-check{{end}}-square-o"></i></dd>
  134. {{end}}
  135. </dl>
  136. </div>
  137. </div>
  138. <div class="panel panel-default">
  139. <div class="panel-heading">
  140. Cache Configuration
  141. </div>
  142. <div class="panel-body">
  143. <dl class="dl-horizontal admin-dl-horizontal">
  144. <dt>Cache Adapter</dt>
  145. <dd>{{.CacheAdapter}}</dd>
  146. <dt>Cache Config</dt>
  147. <dd><div style="padding-top: 5px;"><pre>{{.CacheConfig}}</pre></div></dd>
  148. </dl>
  149. </div>
  150. </div>
  151. <div class="panel panel-default">
  152. <div class="panel-heading">
  153. Session Configuration
  154. </div>
  155. <div class="panel-body">
  156. <dl class="dl-horizontal admin-dl-horizontal">
  157. <dt>Session Provider</dt>
  158. <dd>{{.SessionProvider}}</dd>
  159. <dt>Cookie Name</dt>
  160. <dd>{{.SessionConfig.CookieName}}</dd>
  161. <dt>Enable Set Cookie</dt>
  162. <dd><i class="fa fa{{if .SessionConfig.EnableSetCookie}}-check{{end}}-square-o"></i></dd>
  163. <dt>GC Interval Time</dt>
  164. <dd>{{.SessionConfig.GcIntervalTime}} seconds</dd>
  165. <dt>Session Life Time</dt>
  166. <dd>{{.SessionConfig.SessionLifeTime}} seconds</dd>
  167. <dt>HTTPS Only</dt>
  168. <dd><i class="fa fa{{if .SessionConfig.CookieSecure}}-check{{end}}-square-o"></i></dd>
  169. <dt>Cookie Life Time</dt>
  170. <dd>{{.SessionConfig.CookieLifeTime}} seconds</dd>
  171. <dt>Session ID Hash Function</dt>
  172. <dd>{{.SessionConfig.SessionIDHashFunc}}</dd>
  173. <dt>Session ID Hash Key</dt>
  174. <dd>{{.SessionConfig.SessionIDHashKey}}</dd>
  175. <dt>Provider Config</dt>
  176. <dd>{{.SessionConfig.ProviderConfig}}</dd>
  177. </dl>
  178. </div>
  179. </div>
  180. <div class="panel panel-default">
  181. <div class="panel-heading">
  182. Picture Configuration
  183. </div>
  184. <div class="panel-body">
  185. <dl class="dl-horizontal admin-dl-horizontal">
  186. <dt>Picture Service</dt>
  187. <dd>{{.PictureService}}</dd>
  188. <dt>Disable Gravatar</dt>
  189. <dd><i class="fa fa{{if .DisableGravatar}}-check{{end}}-square-o"></i></dd>
  190. </dl>
  191. </div>
  192. </div>
  193. <div class="panel panel-default">
  194. <div class="panel-heading">
  195. Log Configuration
  196. </div>
  197. <div class="panel-body">
  198. <dl class="dl-horizontal admin-dl-horizontal">
  199. {{range .Loggers}}
  200. <dt>Log Mode</dt>
  201. <dd>{{.Mode}}</dd>
  202. <dt>Log Config</dt>
  203. <dd>
  204. <div style="padding-top: 5px;"><pre>{{.Config}}</pre></div>
  205. </dd>
  206. {{end}}
  207. </dl>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. {{template "base/footer" .}}