
Since pip 23.1, the wsgi_script from PBR are not installed anymore (see [1]) So, instead, rely on the wsgi.py app which is directly bundled in mistral source code. [1] https://discuss.python.org/t/adding-support-for-wsgi-scripts-entrypoint/30905/11 Change-Id: Ideed8421427e865f8010b7bfca58c3f010ac6bd6 Signed-off-by: Arnaud M <arnaud.morin@gmail.com>
26 lines
815 B
Plaintext
26 lines
815 B
Plaintext
Listen %PUBLICPORT%
|
|
|
|
<VirtualHost *:%PUBLICPORT%>
|
|
WSGIDaemonProcess mistral-api processes=%API_WORKERS% threads=1 user=%USER% display-name=%{GROUP} python-home=%MISTRAL_ENV_DIR%
|
|
WSGIProcessGroup mistral-api
|
|
WSGIScriptAlias / %MISTRAL_DIR%/mistral/api/wsgi.py
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIPassAuthorization On
|
|
AllowEncodedSlashes On
|
|
<IfVersion >= 2.4>
|
|
ErrorLogFormat "%{cu}t %M"
|
|
</IfVersion>
|
|
ErrorLog /var/log/%APACHE_NAME%/mistral_api.log
|
|
CustomLog /var/log/%APACHE_NAME%/mistral_api_access.log combined
|
|
|
|
<Directory %MISTRAL_DIR%/mistral/api/>
|
|
<IfVersion >= 2.4>
|
|
Require all granted
|
|
</IfVersion>
|
|
<IfVersion < 2.4>
|
|
Order allow,deny
|
|
Allow from all
|
|
</IfVersion>
|
|
</Directory>
|
|
</VirtualHost>
|