ipsilon / staging: fixes for f36

The wsgi has changed from /usr/libexec/ipsilon/ipsilon.py to
/usr/libexec/ipsilon, so adjust wsgi and directory perms to handle that.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-05-25 16:58:17 -07:00
parent 5b5b2c0b4d
commit 6d5911cc3c

View file

@ -20,7 +20,11 @@ RewriteRule ^([a-z0-9_\.-]+)\.id\.fedoraproject\.org/.* /openid/id/$1/ [PT]
{% endif %}
{% if env == "staging" %}
WSGIScriptAlias / /usr/libexec/ipsilon
{% else %}
WSGIScriptAlias / /usr/libexec/ipsilon/ipsilon.py
{% endif %}
WSGIDaemonProcess ipsilon user=ipsilon group=ipsilon home=/var/lib/ipsilon/root display-name=ipsilon processes=6 threads=2 maximum-requests=1000
WSGISocketPrefix run/wsgi
#WSGIRestrictStdout Off
@ -36,9 +40,15 @@ WSGIApplicationGroup %{GLOBAL}
WSGIProcessGroup ipsilon
</Location>
{% if env == "staging" %}
<Directory /usr/libexec>
Require all granted
</Directory>
{% else %}
<Directory /usr/libexec/ipsilon>
Require all granted
</Directory>
{% endif %}
<Directory /usr/share/ipsilon>
Options +SymLinksIfOwnerMatch