2019-12-04 11:39:59 +01:00
|
|
|
{% set masakari_log_dir = '/var/log/kolla/masakari' %}
|
2018-11-06 10:20:02 +07:00
|
|
|
{% set binary_path = '/usr/bin' if masakari_install_type == 'binary' else '/var/lib/kolla/venv/bin' %}
|
|
|
|
|
2019-09-11 20:47:00 +02:00
|
|
|
Listen {{ api_interface_address | put_address_in_context('url') }}:{{ masakari_api_port }}
|
2018-11-06 10:20:02 +07:00
|
|
|
|
|
|
|
ServerSignature Off
|
|
|
|
ServerTokens Prod
|
|
|
|
TraceEnable off
|
2020-08-06 13:09:01 -07:00
|
|
|
KeepAliveTimeout {{ kolla_httpd_keep_alive }}
|
2018-11-06 10:20:02 +07:00
|
|
|
|
2019-12-04 11:39:59 +01:00
|
|
|
ErrorLog "{{ masakari_log_dir }}/apache-error.log"
|
|
|
|
<IfModule log_config_module>
|
|
|
|
CustomLog "{{ masakari_log_dir }}/apache-access.log" common
|
|
|
|
</IfModule>
|
|
|
|
|
2019-10-24 09:29:36 +02:00
|
|
|
{% if masakari_logging_debug | bool %}
|
|
|
|
LogLevel info
|
|
|
|
{% endif %}
|
|
|
|
|
2018-11-06 10:20:02 +07:00
|
|
|
<Directory "{{ binary_path }}">
|
|
|
|
<FilesMatch "^masakari-wsgi$">
|
|
|
|
Options Indexes FollowSymLinks MultiViews
|
|
|
|
Require all granted
|
|
|
|
</FilesMatch>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<VirtualHost *:{{ masakari_api_port }}>
|
|
|
|
## Logging
|
2019-12-04 11:39:59 +01:00
|
|
|
ErrorLog "{{ masakari_log_dir }}/masakari_wsgi_error.log"
|
2018-11-06 10:20:02 +07:00
|
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
|
2019-12-04 11:39:59 +01:00
|
|
|
CustomLog "{{ masakari_log_dir }}/masakari_wsgi_access.log" logformat
|
2018-11-06 10:20:02 +07:00
|
|
|
WSGIApplicationGroup %{GLOBAL}
|
2020-08-12 11:26:05 +02:00
|
|
|
WSGIDaemonProcess masakari group=masakari processes={{ openstack_service_workers }} threads=1 user=masakari
|
2018-11-06 10:20:02 +07:00
|
|
|
WSGIProcessGroup masakari
|
|
|
|
WSGIScriptAlias / "{{ binary_path }}/masakari-wsgi"
|
|
|
|
</VirtualHost>
|