web: set WSGIProcessGroup inside Directory

Don't alter server-wide configuration, just kojiweb.

Fixes: https://pagure.io/koji/issue/2695
This commit is contained in:
Tomas Kopecek 2021-03-02 14:49:08 +01:00
parent bf34b1fbbf
commit 072cb316d3

View file

@ -5,11 +5,11 @@ Alias /koji "/usr/share/koji-web/scripts/wsgi_publisher.py"
# Python 3 Cheetah expectes unicode everywhere, apache's default lang is C
# which is not sufficient to open our templates
WSGIDaemonProcess koji lang=C.UTF-8
WSGIProcessGroup koji
<Directory "/usr/share/koji-web/scripts/">
Options ExecCGI
SetHandler wsgi-script
WSGIProcessGroup koji
WSGIApplicationGroup %{GLOBAL}
# ^ works around an OpenSSL issue
# see: https://cryptography.io/en/latest/faq/#starting-cryptography-using-mod-wsgi-produces-an-internalerror-during-a-call-in-register-osrandom-engine