Allow the Horizon SESSION_TIMEOUT to be configured

This will only configure the variable if the horizon_session_timeout
user variable is defined.

DocImpact
Closes-bug: #1461623
Change-Id: Idd9eb58651f6e45bfdb5a65c2529c2e2f0b45f09
This commit is contained in:
Ian Cordasco 2015-06-03 13:50:21 -05:00
parent 93e6e237c5
commit df800efc38
2 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,10 @@ horizon_service_name: horizon
horizon_galera_database: dash
horizon_galera_user: dash
## Session configuration
# Specifies the timespan in seconds inactivity, until a user is considered as
# logged out
horizon_session_timeout: 1800
## Horizon Help URL Path
horizon_help_url: http://docs.openstack.org

View File

@ -39,6 +39,9 @@ ALLOWED_HOSTS = ['*']
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
# Define the time after which a Horizon session expires
SESSION_TIMEOUT = {{ horizon_session_timeout }}
# Overrides for OpenStack API versions. Use this setting to force the
# OpenStack dashboard to use a specific API version for a given service API.
# NOTE: The version should be formatted as it appears in the URL for the