From de7ce04461cdc1123550196c837770aed0a63e3e Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Thu, 16 May 2024 15:53:46 +0200 Subject: [PATCH] [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 --- 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 7bb8705f84..32517eaedc 100644 --- a/roles/openshift-apps/release-monitoring/templates/httpd.conf +++ b/roles/openshift-apps/release-monitoring/templates/httpd.conf @@ -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