diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-04-14 14:30:27 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-04-14 15:26:43 +0000 |
commit | 6b18de4da0c6d0400f36f74999ce208e0e0de83c (patch) | |
tree | a2f663ec69dc78928dd0dd43670e0aa6a8517811 | |
parent | 9c9dad27f503d62c193faf9390a524ee82d7a252 (diff) | |
download | definitions-6b18de4da0c6d0400f36f74999ce208e0e0de83c.tar.gz |
horizon: Modify configuration files
Change-Id: Ia9a649e9adb35a59e81b22f1278fda6f745e3b5e
-rw-r--r-- | openstack/etc/horizon/openstack_dashboard/local_settings.py | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/openstack/etc/horizon/openstack_dashboard/local_settings.py b/openstack/etc/horizon/openstack_dashboard/local_settings.py index 5e988dac..febc3e70 100644 --- a/openstack/etc/horizon/openstack_dashboard/local_settings.py +++ b/openstack/etc/horizon/openstack_dashboard/local_settings.py @@ -7,12 +7,15 @@ from openstack_dashboard import exceptions DEBUG = True TEMPLATE_DEBUG = DEBUG +STATIC_ROOT = "/var/lib/horizon/openstack_dashboard/static" + # Required for Django 1.5. # If horizon is running in production (DEBUG is False), set this # with the list of host/domain names that the application can serve. # For more information see: # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts #ALLOWED_HOSTS = ['horizon.example.com', ] +ALLOWED_HOSTS = ['*'] # Set SSL proxy settings: # For Django 1.4+ pass this header from the proxy after terminating the SSL, @@ -52,8 +55,6 @@ TEMPLATE_DEBUG = DEBUG # Default OpenStack Dashboard configuration. HORIZON_CONFIG = { - 'dashboards': ('project', 'admin', 'settings',), - 'default_dashboard': 'project', 'user_home': 'openstack_dashboard.views.get_user_home', 'ajax_queue_limit': 10, 'auto_fade_alerts': { @@ -65,6 +66,7 @@ HORIZON_CONFIG = { 'exceptions': {'recoverable': exceptions.RECOVERABLE, 'not_found': exceptions.NOT_FOUND, 'unauthorized': exceptions.UNAUTHORIZED}, + 'modal_backdrop': 'static', 'angular_modules': [], 'js_files': [], } @@ -83,7 +85,13 @@ HORIZON_CONFIG = { # the database creation workflow if so desired. # HORIZON_CONFIG["password_autocomplete"] = "off" -LOCAL_PATH = os.path.dirname(os.path.abspath(__file__)) +# Setting this to True will disable the reveal button for password fields, +# including on the login form. +# HORIZON_CONFIG["disable_password_reveal"] = False + +#LOCAL_PATH = os.path.dirname(os.path.abspath(__file__)) + +LOCAL_PATH = "/var/lib/horizon" # Set custom secret key: # You can either set it to a specific value or you can let horizon generate a @@ -101,19 +109,19 @@ 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 -# CACHES = { -# 'default': { -# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', -# 'LOCATION': '127.0.0.1:11211', -# } -#} - CACHES = { 'default': { - 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache' + 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', + 'LOCATION': '127.0.0.1:11211', } } +#CACHES = { +# 'default': { +# 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache' +# } +#} + # Send email to the console by default EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Or send them to /dev/null @@ -250,6 +258,9 @@ IMAGE_RESERVED_CUSTOM_PROPERTIES = [] API_RESULT_LIMIT = 1000 API_RESULT_PAGE_SIZE = 20 +# Specify a maximum number of items to display in a dropdown. +DROPDOWN_MAX_ITEMS = 30 + # The timezone of the server. This should correspond with the timezone # of your entire OpenStack installation, and hopefully be in UTC. TIME_ZONE = "UTC" @@ -535,4 +546,6 @@ SECURITY_GROUP_RULES = { # auth_token middleware are using. Allowed values are the # algorithms supported by Python's hashlib library. # OPENSTACK_TOKEN_HASH_ALGORITHM = 'md5' - +LOGIN_URL='/horizon/auth/login/' +LOGOUT_URL='/horizon/auth/logout/' +LOGIN_REDIRECT_URL='/horizon/' |