aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/dashboard/templates/openstack-dashboard-redhat.conf.j2
blob: d4d1f297f94c1cb7c8cfd0e9cc0bd39bd4808aab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>