5137f6b35b
Change-Id: I6189ebd0151207b2e9807f1174c1f3eb4719d90a Implements: blueprint ansible-horizon Co-Authored-By: Harm Weites <harm@weites.com> Co-Authored-By: Sam Yaple <sam@yaple.net>
24 lines
832 B
Django/Jinja
24 lines
832 B
Django/Jinja
{% set apache_dir = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
Listen {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:80
|
|
|
|
<VirtualHost *:80>
|
|
LogLevel warn
|
|
ErrorLog /var/log/{{ apache_dir }}/horizon.log
|
|
CustomLog /var/log/{{ apache_dir }}/horizon-access.log combined
|
|
|
|
WSGIScriptReloading On
|
|
WSGIDaemonProcess horizon-http processes=5 threads=1 user=horizon group=horizon display-name=%{GROUP}
|
|
WSGIProcessGroup horizon-http
|
|
WSGIScriptAlias / /usr/lib/python2.7/site-packages/openstack_dashboard/wsgi/django.wsgi
|
|
WSGIPassAuthorization On
|
|
|
|
<Location "/">
|
|
Require all granted
|
|
</Location>
|
|
|
|
Alias /static /usr/lib/python2.7/site-packages/static
|
|
<Location "/static">
|
|
SetHandler None
|
|
</Location>
|
|
</Virtualhost>
|