89a706867681e087715d3096a43f0ac9497aea48
[compass4nfv.git] /
1 {% set work_threads = (ansible_processor_vcpus + 1) // 2 %}
2 {% if work_threads > 10 %}
3     set work_threads = 10
4 {% endif %}
5
6 <VirtualHost {{ internal_ip }}:80>
7     WSGIScriptAlias /horizon {{ horizon_dir }}/wsgi/django.wsgi
8     WSGIDaemonProcess horizon user=horizon group=horizon processes=4 threads={{ work_threads }}
9     WSGIProcessGroup horizon
10     Alias /static {{ horizon_dir }}/static/
11     Alias /horizon/static {{ horizon_dir }}/static/
12     <Directory {{ horizon_dir }}/wsgi>
13         Order allow,deny
14         Allow from all
15     </Directory>
16 </VirtualHost>
17
18