diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-29 00:26:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 00:26:03 +0800 |
commit | d59b0f6ff7ee24d94eaa5ad68173405faea6a81c (patch) | |
tree | aac389356946b2f6b0f5281843d1dde3ed23f121 /templates/admin | |
parent | 1898201b8b4e555b6dfabd58c5d1136051f35b93 (diff) |
conf: overhaul sessions settings (#5952)
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 66aa158b..07da08a9 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -289,7 +289,6 @@ </dl> </div> - {{/* User settings */}} <h4 class="ui top attached header"> {{.i18n.Tr "admin.config.user_config"}} @@ -301,6 +300,29 @@ </dl> </div> + {{/* Session settings */}} + <h4 class="ui top attached header"> + {{.i18n.Tr "admin.config.session_config"}} + </h4> + <div class="ui attached table segment"> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>{{.i18n.Tr "admin.config.session_provider"}}</dt> + <dd>{{.Session.Provider}}</dd> + <dt>{{.i18n.Tr "admin.config.session.provider_config"}}</dt> + <dd><code>{{.Session.ProviderConfig}}</code></dd> + <dt>{{.i18n.Tr "admin.config.session.cookie_name"}}</dt> + <dd>{{.Session.CookieName}}</dd> + <dt>{{.i18n.Tr "admin.config.session.https_only"}}</dt> + <dd><i class="fa fa{{if .Session.CookieSecure}}-check{{end}}-square-o"></i></dd> + <dt>{{.i18n.Tr "admin.config.session.gc_interval"}}</dt> + <dd>{{.Session.GCInterval}} {{.i18n.Tr "tool.raw_seconds"}}</dd> + <dt>{{.i18n.Tr "admin.config.session.max_life_time"}}</dt> + <dd>{{.Session.MaxLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}</dd> + <dt>{{.i18n.Tr "admin.config.session.csrf_cookie_name"}}</dt> + <dd>{{.Session.CSRFCookieName}}</dd> + </dl> + </div> + <!-- HTTP Configuration --> <h4 class="ui top attached header"> {{.i18n.Tr "admin.config.http_config"}} @@ -349,28 +371,6 @@ </div> <h4 class="ui top attached header"> - {{.i18n.Tr "admin.config.session_config"}} - </h4> - <div class="ui attached table segment"> - <dl class="dl-horizontal admin-dl-horizontal"> - <dt>{{.i18n.Tr "admin.config.session_provider"}}</dt> - <dd>{{.SessionConfig.Provider}}</dd> - <dt>{{.i18n.Tr "admin.config.provider_config"}}</dt> - <dd><code>{{.SessionConfig.ProviderConfig}}</code></dd> - <dt>{{.i18n.Tr "admin.config.cookie_name"}}</dt> - <dd>{{.SessionConfig.CookieName}}</dd> - <dt>{{.i18n.Tr "admin.config.gc_interval_time"}}</dt> - <dd>{{.SessionConfig.Gclifetime}} {{.i18n.Tr "tool.raw_seconds"}}</dd> - <dt>{{.i18n.Tr "admin.config.session_life_time"}}</dt> - <dd>{{.SessionConfig.Maxlifetime}} {{.i18n.Tr "tool.raw_seconds"}}</dd> - <dt>{{.i18n.Tr "admin.config.https_only"}}</dt> - <dd><i class="fa fa{{if .SessionConfig.Secure}}-check{{end}}-square-o"></i></dd> - <dt>{{.i18n.Tr "admin.config.cookie_life_time"}}</dt> - <dd>{{.SessionConfig.CookieLifeTime}} {{.i18n.Tr "tool.raw_seconds"}}</dd> - </dl> - </div> - - <h4 class="ui top attached header"> {{.i18n.Tr "admin.config.picture_config"}} </h4> <div class="ui attached table segment"> |