Fix horizon dashboard
Port the python2.7 local settings overrides to the python3.6 directory structure. Fix issue w/ login screen not successfully completing. Change-Id: I54923e1dc9c7ffa47c2ef6fb90ea9d224b0d2eee
This commit is contained in:
parent
30f09c0c9a
commit
add24a8bf7
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
|
|
@ -20,3 +20,15 @@ AVAILABLE_THEMES = [
|
|||
# ('material', 'Material', 'themes/material'),
|
||||
('ubuntu', 'Ubuntu', 'themes/ubuntu'),
|
||||
]
|
||||
|
||||
OPENSTACK_KEYSTONE_DOMAIN_CHOICES = (
|
||||
('default', 'Default'),
|
||||
)
|
||||
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'
|
||||
|
||||
ALLOWED_HOSTS = ['10.20.20.1', 'localhost', '127.0.0.1']
|
||||
|
||||
OPENSTACK_HOST = "10.20.20.1"
|
||||
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
|
||||
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
|
||||
|
|
@ -26,6 +26,8 @@ DEBUG = True
|
|||
WEBROOT = '/'
|
||||
#LOGIN_URL = WEBROOT + 'auth/login/'
|
||||
#LOGOUT_URL = WEBROOT + 'auth/logout/'
|
||||
#LOGIN_ERROR = WEBROOT + 'auth/error/'
|
||||
|
||||
#
|
||||
# LOGIN_REDIRECT_URL can be used as an alternative for
|
||||
# HORIZON_CONFIG.user_home, if user_home is not set.
|
||||
|
@ -63,10 +65,9 @@ ALLOWED_HOSTS = ['10.20.20.1', 'localhost']
|
|||
# use of the decimal point, so valid options would be 2.0 or 3.
|
||||
# Minimum compute version to get the instance locked status is 2.9.
|
||||
#OPENSTACK_API_VERSIONS = {
|
||||
# "data-processing": 1.1,
|
||||
# "identity": 3,
|
||||
# "image": 2,
|
||||
# "volume": 2,
|
||||
# "volume": 3,
|
||||
# "compute": 2,
|
||||
#}
|
||||
|
||||
|
@ -111,7 +112,15 @@ ALLOWED_HOSTS = ['10.20.20.1', 'localhost']
|
|||
# Toggle showing the openrc file for Keystone V2.
|
||||
# If set to false the link will be removed from the user dropdown menu
|
||||
# and the API Access page
|
||||
#SHOW_KEYSTONE_V2_RC = True
|
||||
#SHOW_KEYSTONE_V2_RC = False
|
||||
|
||||
# Controls whether the keystone openrc file is accesible from the user
|
||||
# menu and the api access panel.
|
||||
SHOW_OPENRC_FILE = True
|
||||
|
||||
# Controls whether clouds.yaml is accesible from the user
|
||||
# menu and the api access panel.
|
||||
SHOW_OPENSTACK_CLOUDS_YAML = True
|
||||
|
||||
# If provided, a "Report Bug" link will be displayed in the site header
|
||||
# which links to the value of this setting (ideally a URL containing
|
||||
|
@ -153,20 +162,31 @@ SECRET_KEY = secret_key.generate_or_read_from_file(
|
|||
|
||||
# We recommend you use memcached for development; otherwise after every reload
|
||||
# of the django development server, you will have to login again. To use
|
||||
# memcached set CACHES to something like
|
||||
# memcached set CACHES to something like below.
|
||||
# For more information, see
|
||||
# https://docs.djangoproject.com/en/1.11/topics/http/sessions/.
|
||||
#CACHES = {
|
||||
# 'default': {
|
||||
# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
|
||||
# 'LOCATION': '127.0.0.1:11211',
|
||||
# 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||
# },
|
||||
#}
|
||||
|
||||
# If you use ``tox -e runserver`` for developments,then configure
|
||||
# SESSION_ENGINE to django.contrib.sessions.backends.signed_cookies
|
||||
# as shown below:
|
||||
#SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
|
||||
|
||||
SESSION_ENGINE='django.contrib.sessions.backends.cache'
|
||||
|
||||
CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||
},
|
||||
#
|
||||
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
|
||||
'LOCATION': '10.20.20.1:11211',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Send email to the console by default
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||
# Or send them to /dev/null
|
||||
|
@ -232,6 +252,21 @@ OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
|
|||
# "acme_saml2": ("acme", "saml2"),
|
||||
#}
|
||||
|
||||
# Enables redirection on login to the identity provider defined on
|
||||
# WEBSSO_DEFAULT_REDIRECT_PROTOCOL and WEBSSO_DEFAULT_REDIRECT_REGION
|
||||
#WEBSSO_DEFAULT_REDIRECT = False
|
||||
|
||||
# Specifies the protocol to use for default redirection on login
|
||||
#WEBSSO_DEFAULT_REDIRECT_PROTOCOL = None
|
||||
|
||||
# Specifies the region to which the connection will be established on login
|
||||
#WEBSSO_DEFAULT_REDIRECT_REGION = OPENSTACK_KEYSTONE_URL
|
||||
|
||||
# Enables redirection on logout to the method specified on the identity provider.
|
||||
# Once logout the client will be redirected to the address specified in this
|
||||
# variable.
|
||||
#WEBSSO_DEFAULT_REDIRECT_LOGOUT = None
|
||||
|
||||
# If set this URL will be used for web single-sign-on authentication
|
||||
# instead of OPENSTACK_KEYSTONE_URL. This is needed in the deployment
|
||||
# scenarios where network segmentation is used per security requirement.
|
||||
|
@ -523,6 +558,7 @@ TIME_ZONE = "UTC"
|
|||
#AVAILABLE_THEMES = [
|
||||
# ('default', 'Default', 'themes/default'),
|
||||
# ('material', 'Material', 'themes/material'),
|
||||
# ('example', 'Example', 'themes/example'),
|
||||
#]
|
||||
|
||||
LOGGING = {
|
||||
|
@ -780,12 +816,6 @@ SECURITY_GROUP_RULES = {
|
|||
# See Metadata Definitions on:
|
||||
# https://docs.openstack.org/glance/latest/user/glancemetadefcatalogapi.html
|
||||
|
||||
# The hash algorithm to use for authentication tokens. This must
|
||||
# match the hash algorithm that the identity server and the
|
||||
# auth_token middleware are using. Allowed values are the
|
||||
# algorithms supported by Python's hashlib library.
|
||||
#OPENSTACK_TOKEN_HASH_ALGORITHM = 'md5'
|
||||
|
||||
# AngularJS requires some settings to be made available to
|
||||
# the client side. Some settings are required by in-tree / built-in horizon
|
||||
# features. These settings must be added to REST_API_REQUIRED_SETTINGS in the
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Loading…
Reference in New Issue