fuel-ccp-horizon/service/files/openstack-dashboard.conf.j2

27 lines
1.0 KiB
Django/Jinja

{% set venv_path = '/var/lib/microservices/venv/lib/python2.7/site-packages' %}
<VirtualHost *:{{ horizon.port.cont }}>
WSGIScriptAlias / {{ venv_path }}/openstack_dashboard/wsgi/django.wsgi
WSGIScriptAlias /horizon {{ venv_path }}/openstack_dashboard/wsgi/django.wsgi
WSGIDaemonProcess horizon user=horizon group=horizon processes={{ horizon.wsgi.processes }} threads={{ horizon.wsgi.threads }} python-path={{ venv_path }}
WSGIProcessGroup horizon
Alias /static {{ venv_path }}/static
<Directory {{ venv_path }}/openstack_dashboard/wsgi>
Order allow,deny
Allow from all
Require all granted
</Directory>
<Directory {{ venv_path }}/static>
Order allow,deny
Allow from all
Require all granted
</Directory>
ErrorLogFormat "%{cu}t %-m:%-l %P:%T %M"
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" access
ErrorLog "/var/log/ccp/horizon/horizon-error.log"
CustomLog "/var/log/ccp/horizon/horizon-access.log" access
</VirtualHost>