From 9f05832fa1915e614fefbb303c6bc06ad7f3fc39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Tue, 14 Dec 2021 13:28:19 +0100 Subject: [PATCH] [release-monitoring] Fix static path on staging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ý --- roles/openshift-apps/release-monitoring/templates/httpd.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/openshift-apps/release-monitoring/templates/httpd.conf b/roles/openshift-apps/release-monitoring/templates/httpd.conf index 55b3e58a18..bd7ac461f0 100644 --- a/roles/openshift-apps/release-monitoring/templates/httpd.conf +++ b/roles/openshift-apps/release-monitoring/templates/httpd.conf @@ -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