5493594b54
Error path[1] of WSGIScriptAlias of panko for ubuntu, the right path is /usr/lib/python2.7/dist-packages/panko/api/app.wsgi. [1]http://logs.openstack.org/02/504302/4/check/puppet-openstack-beaker-xenial/aeb24d6/job-output.txt.gz#_2018-02-28_00_39_06_878490 Change-Id: I87531e4e5ef80e704bae52ed36a6cdbb01d4cffa Closes-Bug: #1753865
26 lines
1001 B
Django/Jinja
26 lines
1001 B
Django/Jinja
{% set python_path = '/usr/lib/python2.7/site-packages' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
|
|
{% set binary_path = '/usr/bin' if kolla_install_type == 'binary' else '/var/lib/kolla/venv/bin' %}
|
|
Listen {{ api_interface_address }}:{{ panko_api_port }}
|
|
|
|
ServerSignature Off
|
|
ServerTokens Prod
|
|
TraceEnable off
|
|
|
|
<Directory "{{ binary_path }}">
|
|
<FilesMatch "^panko-api$">
|
|
Require all granted
|
|
</FilesMatch>
|
|
</Directory>
|
|
|
|
<VirtualHost *:{{ panko_api_port }}>
|
|
|
|
ErrorLog "/var/log/kolla/panko/panko-api-error.log"
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
|
CustomLog "/var/log/kolla/panko/panko-api-access.log" logformat
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIDaemonProcess panko group=panko processes={{ openstack_service_workers }} threads=1 user=panko python-path={{ python_path }}
|
|
WSGIProcessGroup panko
|
|
WSGIScriptAlias / "{{ binary_path }}/panko-api"
|
|
|
|
</VirtualHost>
|