2014-03-21 00:48:10 -05:00
|
|
|
{{template "base/head" .}}
|
|
|
|
{{template "base/navbar" .}}
|
2014-03-25 05:44:37 -05:00
|
|
|
<div id="body" class="container" data-page="admin">
|
2014-03-21 00:48:10 -05:00
|
|
|
{{template "admin/nav" .}}
|
2014-04-04 17:31:09 -05:00
|
|
|
<div id="admin-container" class="col-md-10">
|
2014-03-21 00:48:10 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Server Configuration
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2014-03-31 22:44:30 -05:00
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Application Name</dt>
|
|
|
|
<dd>{{AppName}}</dd>
|
|
|
|
<dt>Application Version</dt>
|
|
|
|
<dd>{{AppVer}}</dd>
|
|
|
|
<dt>Application URL</dt>
|
|
|
|
<dd>{{.AppUrl}}</dd>
|
|
|
|
<dt>Domain</dt>
|
|
|
|
<dd>{{.Domain}}</dd>
|
2014-04-27 02:05:13 -05:00
|
|
|
<dt>Offline Mode</dt>
|
|
|
|
<dd><i class="fa fa{{if .OfflineMode}}-check{{end}}-square-o"></i></dd>
|
2014-05-06 12:47:47 -05:00
|
|
|
<dt>Disable Router Log</dt>
|
|
|
|
<dd><i class="fa fa{{if .DisableRouterLog}}-check{{end}}-square-o"></i></dd>
|
2014-03-31 22:21:59 -05:00
|
|
|
<hr/>
|
|
|
|
<dt>Run User</dt>
|
|
|
|
<dd>{{.RunUser}}</dd>
|
|
|
|
<dt>Run Mode</dt>
|
|
|
|
<dd>{{.RunMode}}</dd>
|
|
|
|
<hr/>
|
|
|
|
<dt>Repository Root Path</dt>
|
|
|
|
<dd>{{.RepoRootPath}}</dd>
|
2014-05-28 00:53:06 -05:00
|
|
|
<dt>Static File Root Path</dt>
|
|
|
|
<dd>{{.StaticRootPath}}</dd>
|
|
|
|
<dt>Log File Root Path</dt>
|
|
|
|
<dd>{{.LogRootPath}}</dd>
|
2014-04-27 02:05:13 -05:00
|
|
|
<dt>Script Type</dt>
|
|
|
|
<dd>{{.ScriptType}}</dd>
|
2014-06-24 12:55:47 -05:00
|
|
|
<dt>Reverse Authentication User</dt>
|
|
|
|
<dd>{{.ReverseProxyAuthUser}}</dd>
|
2014-03-31 22:21:59 -05:00
|
|
|
</dl>
|
2014-03-21 02:27:59 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Database Configuration
|
|
|
|
</div>
|
2014-03-21 00:48:10 -05:00
|
|
|
|
2014-03-21 02:27:59 -05:00
|
|
|
<div class="panel-body">
|
2014-03-31 22:44:30 -05:00
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Type</dt>
|
|
|
|
<dd>{{.DbCfg.Type}}</dd>
|
|
|
|
<dt>Host</dt>
|
|
|
|
<dd>{{.DbCfg.Host}}</dd>
|
|
|
|
<dt>Name</dt>
|
|
|
|
<dd>{{.DbCfg.Name}}</dd>
|
|
|
|
<dt>User</dt>
|
|
|
|
<dd>{{.DbCfg.User}}</dd>
|
|
|
|
<dt>SslMode</dt>
|
|
|
|
<dd>{{.DbCfg.SslMode}} (for "postgres" only)</dd>
|
|
|
|
<dt>Path</dt>
|
|
|
|
<dd>{{.DbCfg.Path}} (for "sqlite3" only)</dd>
|
|
|
|
</dl>
|
2014-03-21 02:27:59 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Service Configuration
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2014-03-31 22:44:30 -05:00
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Register Email Confirmation</dt>
|
|
|
|
<dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd>
|
2014-04-21 17:03:04 -05:00
|
|
|
<dt>Disable Registration</dt>
|
|
|
|
<dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd>
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Require Sign In View</dt>
|
|
|
|
<dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd>
|
|
|
|
<dt>Mail Notification</dt>
|
2014-06-20 23:51:41 -05:00
|
|
|
<dd><i class="fa fa{{if .Service.EnableNotifyMail}}-check{{end}}-square-o"></i></dd>
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Enable Cache Avatar</dt>
|
|
|
|
<dd><i class="fa fa{{if .Service.EnableCacheAvatar}}-check{{end}}-square-o"></i></dd>
|
|
|
|
<hr/>
|
|
|
|
<dt>Active Code Lives</dt>
|
|
|
|
<dd>{{.Service.ActiveCodeLives}} minutes</dd>
|
|
|
|
<dt>Reset Password Code Lives</dt>
|
|
|
|
<dd>{{.Service.ResetPwdCodeLives}} minutes</dd>
|
|
|
|
</dl>
|
2014-03-21 02:27:59 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-06-08 03:45:34 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Webhook Configuration
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
|
|
|
<dt>Task Interval</dt>
|
|
|
|
<dd>{{.WebhookTaskInterval}} minutes</dd>
|
|
|
|
<dt>Deliver Timeout</dt>
|
|
|
|
<dd>{{.WebhookDeliverTimeout}} seconds</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-03-21 02:27:59 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Mailer Configuration
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2014-03-31 22:44:30 -05:00
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Enabled</dt>
|
|
|
|
<dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd>
|
2014-04-13 20:00:12 -05:00
|
|
|
{{if .MailerEnabled}}<dt>Name</dt>
|
2014-03-31 22:21:59 -05:00
|
|
|
<dd>{{.Mailer.Name}}</dd>
|
|
|
|
<dt>Host</dt>
|
|
|
|
<dd>{{.Mailer.Host}}</dd>
|
|
|
|
<dt>User</dt>
|
2014-04-13 20:00:12 -05:00
|
|
|
<dd>{{.Mailer.User}}</dd>{{end}}
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
OAuth Configuration
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
|
|
|
<dt>Enabled</dt>
|
|
|
|
<dd><i class="fa fa{{if .OauthEnabled}}-check{{end}}-square-o"></i></dd>
|
|
|
|
{{if .OauthEnabled}}<dt>GitHub</dt>
|
|
|
|
<dd><i class="fa fa{{if .Oauther.GitHub}}-check{{end}}-square-o"></i></dd>
|
|
|
|
<dt>Google</dt>
|
|
|
|
<dd><i class="fa fa{{if .Oauther.Google}}-check{{end}}-square-o"></i></dd>
|
|
|
|
<dt>Tencent QQ</dt>
|
|
|
|
<dd><i class="fa fa{{if .Oauther.Tencent}}-check{{end}}-square-o"></i></dd>
|
|
|
|
<dt>Weibo</dt>
|
|
|
|
<dd><i class="fa fa{{if .Oauther.Weibo}}-check{{end}}-square-o"></i></dd>
|
2014-04-14 01:50:13 -05:00
|
|
|
{{end}}
|
2014-03-31 22:21:59 -05:00
|
|
|
</dl>
|
2014-03-21 00:48:10 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-21 09:09:57 -05:00
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Cache Configuration
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2014-03-31 22:44:30 -05:00
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Cache Adapter</dt>
|
|
|
|
<dd>{{.CacheAdapter}}</dd>
|
|
|
|
<dt>Cache Config</dt>
|
|
|
|
<dd><div style="padding-top: 5px;"><pre>{{.CacheConfig}}</pre></div></dd>
|
|
|
|
</dl>
|
2014-03-21 11:13:13 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-03-22 08:21:57 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Session Configuration
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2014-03-31 22:44:30 -05:00
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Session Provider</dt>
|
|
|
|
<dd>{{.SessionProvider}}</dd>
|
|
|
|
<dt>Cookie Name</dt>
|
|
|
|
<dd>{{.SessionConfig.CookieName}}</dd>
|
|
|
|
<dt>Enable Set Cookie</dt>
|
|
|
|
<dd><i class="fa fa{{if .SessionConfig.EnableSetCookie}}-check{{end}}-square-o"></i></dd>
|
|
|
|
<dt>GC Interval Time</dt>
|
2014-07-26 01:28:04 -05:00
|
|
|
<dd>{{.SessionConfig.Gclifetime}} seconds</dd>
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Session Life Time</dt>
|
2014-07-26 01:28:04 -05:00
|
|
|
<dd>{{.SessionConfig.Maxlifetime}} seconds</dd>
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>HTTPS Only</dt>
|
2014-07-26 01:28:04 -05:00
|
|
|
<dd><i class="fa fa{{if .SessionConfig.Secure}}-check{{end}}-square-o"></i></dd>
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Cookie Life Time</dt>
|
|
|
|
<dd>{{.SessionConfig.CookieLifeTime}} seconds</dd>
|
|
|
|
<dt>Session ID Hash Function</dt>
|
|
|
|
<dd>{{.SessionConfig.SessionIDHashFunc}}</dd>
|
|
|
|
<dt>Session ID Hash Key</dt>
|
|
|
|
<dd>{{.SessionConfig.SessionIDHashKey}}</dd>
|
|
|
|
<dt>Provider Config</dt>
|
|
|
|
<dd>{{.SessionConfig.ProviderConfig}}</dd>
|
|
|
|
</dl>
|
2014-03-22 08:21:57 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-03-22 05:42:19 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Picture Configuration
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2014-03-31 22:44:30 -05:00
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Picture Service</dt>
|
|
|
|
<dd>{{.PictureService}}</dd>
|
2014-05-01 20:30:04 -05:00
|
|
|
<dt>Disable Gravatar</dt>
|
|
|
|
<dd><i class="fa fa{{if .DisableGravatar}}-check{{end}}-square-o"></i></dd>
|
2014-03-31 22:21:59 -05:00
|
|
|
</dl>
|
2014-03-22 05:42:19 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-03-21 11:13:13 -05:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Log Configuration
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2014-03-31 22:44:30 -05:00
|
|
|
<dl class="dl-horizontal admin-dl-horizontal">
|
2014-05-11 13:37:12 -05:00
|
|
|
{{range .Loggers}}
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Log Mode</dt>
|
2014-05-11 13:37:12 -05:00
|
|
|
<dd>{{.Mode}}</dd>
|
2014-03-31 22:21:59 -05:00
|
|
|
<dt>Log Config</dt>
|
|
|
|
<dd>
|
2014-05-11 13:37:12 -05:00
|
|
|
<div style="padding-top: 5px;"><pre>{{.Config}}</pre></div>
|
2014-03-31 22:21:59 -05:00
|
|
|
</dd>
|
2014-05-11 13:37:12 -05:00
|
|
|
{{end}}
|
2014-03-31 22:21:59 -05:00
|
|
|
</dl>
|
2014-03-21 11:13:13 -05:00
|
|
|
|
2014-03-21 09:09:57 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-21 00:48:10 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|