{% set log_dir = '/var/log/kolla/placement' %} {% set wsgi_directory = '/var/lib/kolla/venv/bin' %} {% if placement_enable_tls_backend | bool %} {% if kolla_base_distro in ['centos', 'rocky'] %} LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl.so {% else %} LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so {% endif %} {% endif %} Listen {{ api_interface_address | put_address_in_context('url') }}:{{ placement_api_listen_port }} ServerSignature Off ServerTokens Prod TraceEnable off TimeOut {{ kolla_httpd_timeout }} KeepAliveTimeout {{ kolla_httpd_keep_alive }} {% if placement_logging_debug | bool %} LogLevel info {% endif %} WSGIDaemonProcess placement-api processes={{ placement_api_workers }} threads=1 user=placement group=placement display-name=placement-api WSGIProcessGroup placement-api WSGIScriptAlias / {{ wsgi_directory }}/placement-api WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On = 2.4> ErrorLogFormat "%{cu}t %M" ErrorLog "{{ log_dir }}/placement-api.log" LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat CustomLog "{{ log_dir }}/placement-api-access.log" logformat Require all granted {% if placement_enable_tls_backend | bool %} SSLEngine on SSLCertificateFile /etc/placement/certs/placement-cert.pem SSLCertificateKeyFile /etc/placement/certs/placement-key.pem {% endif %}