-
-
Save anonymous/263b4b97216131e0bbe9 to your computer and use it in GitHub Desktop.
local_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@test-control-2 openstack-dashboard]# cat local_settings | |
import os | |
from django.utils.translation import ugettext_lazy as _ | |
from openstack_dashboard import exceptions | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ALLOWED_HOSTS = "*" | |
HORIZON_CONFIG = { | |
'dashboards': ('project', 'admin', 'settings',), | |
'default_dashboard': 'project', | |
'user_home': 'openstack_dashboard.views.get_user_home', | |
'ajax_queue_limit': 10, | |
'auto_fade_alerts': { | |
'delay': 3000, | |
'fade_duration': 1500, | |
'types': ['alert-success', 'alert-info'] | |
}, | |
'help_url': "http://docs.openstack.org", | |
'exceptions': {'recoverable': exceptions.RECOVERABLE, | |
'not_found': exceptions.NOT_FOUND, | |
'unauthorized': exceptions.UNAUTHORIZED}, | |
} | |
from horizon.utils import secret_key | |
LOCAL_PATH = '/var/lib/openstack-dashboard' | |
SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store')) | |
CACHES = { | |
'default': { | |
'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache', | |
'LOCATION' : '127.0.0.1:11211', | |
} | |
} | |
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | |
OPENSTACK_HOST = "10.192.2.121" | |
OPENSTACK_KEYSTONE_URL = "https://%s:5000/v2.0" % OPENSTACK_HOST | |
OPENSTACK_SSL_NO_VERIFY = True | |
OPENSTACK_SSL_CACERT = '/etc/keystone/ssl/certs/ca.pem' | |
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member" | |
OPENSTACK_KEYSTONE_BACKEND = { | |
'name': 'native', | |
'can_edit_user': True, | |
'can_edit_group': True, | |
'can_edit_project': True, | |
'can_edit_domain': True, | |
'can_edit_role': True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment