config.tmpl 8.3 KB

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