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.

124 lines
5.4 KiB

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-9">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. Server Configuration
  9. </div>
  10. <div class="panel-body">
  11. <div><b>Application Name:</b> {{AppName}}</div>
  12. <div><b>Application Version:</b> {{AppVer}}</div>
  13. <div><b>Application URL:</b> {{.AppUrl}}</div>
  14. <div><b>Domain:</b> {{.Domain}}</div>
  15. <hr/>
  16. <div><b>Run User:</b> {{.RunUser}}</div>
  17. <div><b>Run Mode:</b> {{.RunMode}}</div>
  18. <hr/>
  19. <div><b>Enable HTTPS Clone</b> <i class="fa fa{{if .EnableHttpsClone}}-check{{end}}-square-o"></i></div>
  20. <div><b>Repository Root Path:</b> {{.RepoRootPath}}</div>
  21. </div>
  22. </div>
  23. <div class="panel panel-default">
  24. <div class="panel-heading">
  25. Database Configuration
  26. </div>
  27. <div class="panel-body">
  28. <div><b>Type:</b> {{.DbCfg.Type}}</div>
  29. <div><b>Host:</b> {{.DbCfg.Host}}</div>
  30. <div><b>Name:</b> {{.DbCfg.Name}}</div>
  31. <div><b>User:</b> {{.DbCfg.User}}</div>
  32. <div><b>SslMode:</b> {{.DbCfg.SslMode}} (for "postgres" only)</div>
  33. <div><b>Path:</b> {{.DbCfg.Path}} (for "sqlite3" only)</div>
  34. </div>
  35. </div>
  36. <div class="panel panel-default">
  37. <div class="panel-heading">
  38. Service Configuration
  39. </div>
  40. <div class="panel-body">
  41. <div><b>Register Email Confirmation:</b> <i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></div>
  42. <div><b>Disenable Registeration:</b> <i class="fa fa{{if .Service.DisenableRegisteration}}-check{{end}}-square-o"></i></div>
  43. <div><b>Require Sign In View:</b> <i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></div>
  44. <div><b>Mail Notification:</b> <i class="fa fa{{if .Service.NotifyMail}}-check{{end}}-square-o"></i></div>
  45. <div><b>Enable Cache Avatar:</b> <i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></div>
  46. <hr/>
  47. <div><b>Active Code Lives:</b> {{.Service.ActiveCodeLives}} minutes</div>
  48. <div><b>Reset Password Code Lives:</b> {{.Service.ResetPwdCodeLives}} minutes</div>
  49. </div>
  50. </div>
  51. <div class="panel panel-default">
  52. <div class="panel-heading">
  53. Mailer Configuration
  54. </div>
  55. <div class="panel-body">
  56. <div><b>Enabled:</b> <i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></div>
  57. <div><b>Name:</b> {{.Mailer.Name}}</div>
  58. <div><b>Host:</b> {{.Mailer.Host}}</div>
  59. <div><b>User:</b> {{.Mailer.User}}</div>
  60. </div>
  61. </div>
  62. <div class="panel panel-default">
  63. <div class="panel-heading">
  64. Cache Configuration
  65. </div>
  66. <div class="panel-body">
  67. <div><b>Cache Adapter:</b> {{.CacheAdapter}}</div>
  68. <div><b>Cache Config:</b></div>
  69. <div style="padding-top: 5px;"><pre>{{.CacheConfig}}</pre></div>
  70. </div>
  71. </div>
  72. <div class="panel panel-default">
  73. <div class="panel-heading">
  74. Session Configuration
  75. </div>
  76. <div class="panel-body">
  77. <div><b>Session Provider:</b> {{.SessionProvider}}</div>
  78. <div><b>Cookie Name:</b> {{.SessionConfig.CookieName}}</div>
  79. <div><b>Enable Set Cookie:</b> <i class="fa fa{{if .SessionConfig.EnableSetCookie}}-check{{end}}-square-o"></i></div>
  80. <div><b>GC Interval Time:</b> {{.SessionConfig.GcIntervalTime}} seconds</div>
  81. <div><b>Session Life Time:</b> {{.SessionConfig.SessionLifeTime}} seconds</div>
  82. <div><b>HTTPS Only:</b> <i class="fa fa{{if .SessionConfig.CookieSecure}}-check{{end}}-square-o"></i></div>
  83. <div><b>Cookie Life Time:</b> {{.SessionConfig.CookieLifeTime}} seconds</div>
  84. <div><b>Session ID Hash Function:</b> {{.SessionConfig.SessionIDHashFunc}}</div>
  85. <div><b>Session ID Hash Key:</b> {{.SessionConfig.SessionIDHashKey}}</div>
  86. <div><b>Provider Config:</b> {{.SessionConfig.ProviderConfig}}</div>
  87. </div>
  88. </div>
  89. <div class="panel panel-default">
  90. <div class="panel-heading">
  91. Picture Configuration
  92. </div>
  93. <div class="panel-body">
  94. <div><b>Picture Service:</b> {{.PictureService}}</div>
  95. </div>
  96. </div>
  97. <div class="panel panel-default">
  98. <div class="panel-heading">
  99. Log Configuration
  100. </div>
  101. <div class="panel-body">
  102. <div><b>Log Mode:</b> {{.LogMode}}</div>
  103. <div><b>Log Config:</b></div>
  104. <div style="padding-top: 5px;"><pre>{{.LogConfig}}</pre></div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. {{template "base/footer" .}}