aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/dashboard/templates
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-05-27 18:16:57 +0800
committerQiLiang <liangqi1@huawei.com>2016-05-29 02:31:20 +0800
commitf79ca6b0696ed332dc83e46ecf7dc76a639edff8 (patch)
treef597aac19203f539f4408507356e3a563d9cca3d /deploy/adapters/ansible/roles/dashboard/templates
parent703bb4808acc83f08917e7b8274df44b2ffd39c0 (diff)
FIX: dashboard access failure on centos
JIRA: COMPASS-407 Change-Id: Id90cc98aadff1b929e38dd681e665930f048f2ea Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/dashboard/templates')
-rw-r--r--deploy/adapters/ansible/roles/dashboard/templates/openstack-dashboard-redhat.conf.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/dashboard/templates/openstack-dashboard-redhat.conf.j2 b/deploy/adapters/ansible/roles/dashboard/templates/openstack-dashboard-redhat.conf.j2
new file mode 100644
index 00000000..d4d1f297
--- /dev/null
+++ b/deploy/adapters/ansible/roles/dashboard/templates/openstack-dashboard-redhat.conf.j2
@@ -0,0 +1,21 @@
+{% set work_threads = (ansible_processor_vcpus + 1) // 2 %}
+
+WSGIDaemonProcess horizon processes={{ work_threads }} threads={{ work_threads }}
+WSGIProcessGroup horizon
+WSGISocketPrefix run/wsgi
+
+WSGIScriptAlias /horizon {{ horizon_dir }}/openstack_dashboard/wsgi/django.wsgi
+Alias /horizon/static {{ horizon_dir }}/static
+
+<Directory {{ horizon_dir }}/openstack_dashboard/wsgi>
+ Options All
+ AllowOverride All
+ Require all granted
+</Directory>
+
+<Directory {{ horizon_dir }}/static>
+ Options All
+ AllowOverride All
+ Require all granted
+</Directory>
+