[release-monitoring] Read docs and static from correct location

As the python version changed in fedora 40, we need to adjust the httpd conf to
read the files from correct location.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny
2024-05-16 15:53:46 +02:00
parent 540c1ae874
commit de7ce04461

View File

@@ -55,8 +55,13 @@ LogLevel info
TypesConfig /etc/mime.types
AddDefaultCharset UTF-8
CoreDumpDirectory /tmp
{% if env == "staging" %}
Alias /docs /usr/local/lib/python3.12/site-packages/anitya/static/docs/html/
Alias /static /usr/local/lib/python3.12/site-packages/anitya/static/
{% else %}
Alias /docs /usr/local/lib/python3.11/site-packages/anitya/static/docs/html/
Alias /static /usr/local/lib/python3.11/site-packages/anitya/static/
{% endif %}
WSGIDaemonProcess anitya display-name=anitya processes=2 threads=2 maximum-requests=1000 home=/httpdir
WSGIApplicationGroup %{GLOBAL}
WSGISocketPrefix run/wsgi