[release-monitoring] Fix static path on staging

The current static path referenced python3.8 in path, which is no longer
true on newer Fedora, so we need to have special rule for staging till
the production will be updated.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2021-12-14 13:28:19 +01:00
parent 53a79c70d1
commit 9f05832fa1

View file

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