diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-22 20:46:16 +0800 |
---|---|---|
committer | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-22 20:46:16 +0800 |
commit | 286fbc07e985d960209e8443a57e7f95efe60efd (patch) | |
tree | dd3d0d38081fa258751004472695c8fdc6885e43 /templates/admin | |
parent | a7e53b8134eefcbaa60a2755da8518dd08471a69 (diff) |
conf: overhaul security settings
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 2fb2d269..6e20d756 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -67,8 +67,6 @@ <dt>{{.i18n.Tr "admin.config.log_file_root_path"}}</dt> <dd><code>{{.LogRootPath}}</code></dd> - <dt>{{.i18n.Tr "admin.config.reverse_auth_user"}}</dt> - <dd><code>{{.ReverseProxyAuthUser}}</code></dd> </dl> </div> @@ -182,6 +180,29 @@ </dl> </div> + {{/* Security settings */}} + <h4 class="ui top attached header"> + {{.i18n.Tr "admin.config.security_config"}} + </h4> + <div class="ui attached table segment"> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>{{.i18n.Tr "admin.config.security.login_remember_days"}}</dt> + <dd>{{.Security.LoginRememberDays}}</dd> + <dt>{{.i18n.Tr "admin.config.security.cookie_remember_name"}}</dt> + <dd>{{.Security.CookieRememberName}}</dd> + <dt>{{.i18n.Tr "admin.config.security.cookie_username"}}</dt> + <dd>{{.Security.CookieUsername}}</dd> + <dt>{{.i18n.Tr "admin.config.security.cookie_secure"}}</dt> + <dd><i class="fa fa{{if .Security.CookieSecure}}-check{{end}}-square-o"></i></dd> + <dt>{{.i18n.Tr "admin.config.security.reverse_proxy_auth_user"}}</dt> + <dd>{{.Security.ReverseProxyAuthenticationUser}}</dd> + <dt>{{.i18n.Tr "admin.config.security.enable_login_status_cookie"}}</dt> + <dd><i class="fa fa{{if .Security.EnableLoginStatusCookie}}-check{{end}}-square-o"></i></dd> + <dt>{{.i18n.Tr "admin.config.security.login_status_cookie_name"}}</dt> + <dd>{{.Security.LoginStatusCookieName}}</dd> + </dl> + </div> + <!-- HTTP Configuration --> <h4 class="ui top attached header"> {{.i18n.Tr "admin.config.http_config"}} |