9c38a0c77b
It was found to be useless in [1]. It is one of distro_python_version usages. Note Freezer and Horizon still use python_path (and hence distro_python_version) for different purposes. [1] https://review.opendev.org/675822 Change-Id: I6d6d9fdf4c28cb2b686d548955108c994b685bb1 Partially-Implements: blueprint drop-distro-python-version
43 lines
1.3 KiB
Django/Jinja
43 lines
1.3 KiB
Django/Jinja
{% set vitrage_log_dir = '/var/log/kolla/vitrage' %}
|
|
Listen {{ 'api' | kolla_address | put_address_in_context('url') }}:{{ vitrage_api_port }}
|
|
|
|
ServerSignature Off
|
|
ServerTokens Prod
|
|
TraceEnable off
|
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
|
|
|
ErrorLog "{{ vitrage_log_dir }}/apache-error.log"
|
|
<IfModule log_config_module>
|
|
CustomLog "{{ vitrage_log_dir }}/apache-access.log" common
|
|
</IfModule>
|
|
|
|
{% if vitrage_logging_debug | bool %}
|
|
LogLevel info
|
|
{% endif %}
|
|
|
|
<VirtualHost *:{{ vitrage_api_port }}>
|
|
|
|
## Vhost docroot
|
|
DocumentRoot "/var/www/cgi-bin/vitrage"
|
|
|
|
## Directories, there should at least be a declaration for /var/www/cgi-bin/vitrage
|
|
|
|
<Directory "/var/www/cgi-bin/vitrage">
|
|
Options Indexes FollowSymLinks MultiViews
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
## Logging
|
|
ErrorLog "{{ vitrage_log_dir }}/vitrage_wsgi_error.log"
|
|
ServerSignature Off
|
|
CustomLog "{{ vitrage_log_dir }}/vitrage_wsgi_access.log" combined
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIDaemonProcess vitrage group=vitrage processes={{ openstack_service_workers }} threads=1 user=vitrage
|
|
WSGIProcessGroup vitrage
|
|
WSGIScriptAlias / "/var/www/cgi-bin/vitrage/app.wsgi"
|
|
{% if enable_vitrage_prometheus_datasource | bool %}
|
|
WSGIPassAuthorization On
|
|
{% endif %}
|
|
</VirtualHost>
|