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.

200 lines
7.8 KiB

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. <hr/>
  21. <dt>Run User</dt>
  22. <dd>{{.RunUser}}</dd>
  23. <dt>Run Mode</dt>
  24. <dd>{{.RunMode}}</dd>
  25. <hr/>
  26. <dt>Repository Root Path</dt>
  27. <dd>{{.RepoRootPath}}</dd>
  28. </dl>
  29. </div>
  30. </div>
  31. <div class="panel panel-default">
  32. <div class="panel-heading">
  33. Database Configuration
  34. </div>
  35. <div class="panel-body">
  36. <dl class="dl-horizontal admin-dl-horizontal">
  37. <dt>Type</dt>
  38. <dd>{{.DbCfg.Type}}</dd>
  39. <dt>Host</dt>
  40. <dd>{{.DbCfg.Host}}</dd>
  41. <dt>Name</dt>
  42. <dd>{{.DbCfg.Name}}</dd>
  43. <dt>User</dt>
  44. <dd>{{.DbCfg.User}}</dd>
  45. <dt>SslMode</dt>
  46. <dd>{{.DbCfg.SslMode}} (for "postgres" only)</dd>
  47. <dt>Path</dt>
  48. <dd>{{.DbCfg.Path}} (for "sqlite3" only)</dd>
  49. </dl>
  50. </div>
  51. </div>
  52. <div class="panel panel-default">
  53. <div class="panel-heading">
  54. Service Configuration
  55. </div>
  56. <div class="panel-body">
  57. <dl class="dl-horizontal admin-dl-horizontal">
  58. <dt>Register Email Confirmation</dt>
  59. <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd>
  60. <dt>Disable Registration</dt>
  61. <dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd>
  62. <dt>Require Sign In View</dt>
  63. <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd>
  64. <dt>Mail Notification</dt>
  65. <dd><i class="fa fa{{if .Service.NotifyMail}}-check{{end}}-square-o"></i></dd>
  66. <dt>Enable Cache Avatar</dt>
  67. <dd><i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></dd>
  68. <hr/>
  69. <dt>Active Code Lives</dt>
  70. <dd>{{.Service.ActiveCodeLives}} minutes</dd>
  71. <dt>Reset Password Code Lives</dt>
  72. <dd>{{.Service.ResetPwdCodeLives}} minutes</dd>
  73. </dl>
  74. </div>
  75. </div>
  76. <div class="panel panel-default">
  77. <div class="panel-heading">
  78. Mailer Configuration
  79. </div>
  80. <div class="panel-body">
  81. <dl class="dl-horizontal admin-dl-horizontal">
  82. <dt>Enabled</dt>
  83. <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
  84. {{if .MailerEnabled}}<dt>Name</dt>
  85. <dd>{{.Mailer.Name}}</dd>
  86. <dt>Host</dt>
  87. <dd>{{.Mailer.Host}}</dd>
  88. <dt>User</dt>
  89. <dd>{{.Mailer.User}}</dd>{{end}}
  90. </dl>
  91. </div>
  92. </div>
  93. <div class="panel panel-default">
  94. <div class="panel-heading">
  95. OAuth Configuration
  96. </div>
  97. <div class="panel-body">
  98. <dl class="dl-horizontal admin-dl-horizontal">
  99. <dt>Enabled</dt>
  100. <dd><i class="fa fa{{if .OauthEnabled}}-check{{end}}-square-o"></i></dd>
  101. {{if .OauthEnabled}}<dt>GitHub</dt>
  102. <dd><i class="fa fa{{if .Oauther.GitHub}}-check{{end}}-square-o"></i></dd>
  103. <dt>Google</dt>
  104. <dd><i class="fa fa{{if .Oauther.Google}}-check{{end}}-square-o"></i></dd>
  105. <dt>Tencent QQ</dt>
  106. <dd><i class="fa fa{{if .Oauther.Tencent}}-check{{end}}-square-o"></i></dd>
  107. <dt>Weibo</dt>
  108. <dd><i class="fa fa{{if .Oauther.Weibo}}-check{{end}}-square-o"></i></dd>
  109. {{end}}
  110. </dl>
  111. </div>
  112. </div>
  113. <div class="panel panel-default">
  114. <div class="panel-heading">
  115. Cache Configuration
  116. </div>
  117. <div class="panel-body">
  118. <dl class="dl-horizontal admin-dl-horizontal">
  119. <dt>Cache Adapter</dt>
  120. <dd>{{.CacheAdapter}}</dd>
  121. <dt>Cache Config</dt>
  122. <dd><div style="padding-top: 5px;"><pre>{{.CacheConfig}}</pre></div></dd>
  123. </dl>
  124. </div>
  125. </div>
  126. <div class="panel panel-default">
  127. <div class="panel-heading">
  128. Session Configuration
  129. </div>
  130. <div class="panel-body">
  131. <dl class="dl-horizontal admin-dl-horizontal">
  132. <dt>Session Provider</dt>
  133. <dd>{{.SessionProvider}}</dd>
  134. <dt>Cookie Name</dt>
  135. <dd>{{.SessionConfig.CookieName}}</dd>
  136. <dt>Enable Set Cookie</dt>
  137. <dd><i class="fa fa{{if .SessionConfig.EnableSetCookie}}-check{{end}}-square-o"></i></dd>
  138. <dt>GC Interval Time</dt>
  139. <dd>{{.SessionConfig.GcIntervalTime}} seconds</dd>
  140. <dt>Session Life Time</dt>
  141. <dd>{{.SessionConfig.SessionLifeTime}} seconds</dd>
  142. <dt>HTTPS Only</dt>
  143. <dd><i class="fa fa{{if .SessionConfig.CookieSecure}}-check{{end}}-square-o"></i></dd>
  144. <dt>Cookie Life Time</dt>
  145. <dd>{{.SessionConfig.CookieLifeTime}} seconds</dd>
  146. <dt>Session ID Hash Function</dt>
  147. <dd>{{.SessionConfig.SessionIDHashFunc}}</dd>
  148. <dt>Session ID Hash Key</dt>
  149. <dd>{{.SessionConfig.SessionIDHashKey}}</dd>
  150. <dt>Provider Config</dt>
  151. <dd>{{.SessionConfig.ProviderConfig}}</dd>
  152. </dl>
  153. </div>
  154. </div>
  155. <div class="panel panel-default">
  156. <div class="panel-heading">
  157. Picture Configuration
  158. </div>
  159. <div class="panel-body">
  160. <dl class="dl-horizontal admin-dl-horizontal">
  161. <dt>Picture Service</dt>
  162. <dd>{{.PictureService}}</dd>
  163. </dl>
  164. </div>
  165. </div>
  166. <div class="panel panel-default">
  167. <div class="panel-heading">
  168. Log Configuration
  169. </div>
  170. <div class="panel-body">
  171. <dl class="dl-horizontal admin-dl-horizontal">
  172. <dt>Log Mode</dt>
  173. <dd>{{.LogMode}}</dd>
  174. <dt>Log Config</dt>
  175. <dd>
  176. <div style="padding-top: 5px;"><pre>{{.LogConfig}}</pre></div>
  177. </dd>
  178. </dl>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. {{template "base/footer" .}}