44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
WSGISocketPrefix run/wsgi
|
|
#WSGIRestrictStdout On
|
|
WSGIRestrictSignal Off
|
|
WSGIPythonOptimize 1
|
|
WSGIPassAuthorization On
|
|
WSGIDaemonProcess pagureproc user=pagure group=packager maximum-requests=1000 display-name=pagure processes={{ wsgi_procs }} threads={{ wsgi_threads }} inactivity-timeout=300
|
|
WSGIProcessGroup pagureproc
|
|
|
|
|
|
WSGIScriptAlias / /var/www/pagure.wsgi
|
|
|
|
# SSLEngine on
|
|
# SSLProtocol all -SSLv2 -SSLv3
|
|
# # Use secure TLSv1.1 and TLSv1.2 ciphers
|
|
# Header always add Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
|
|
# SSLCertificateFile /etc/pki/tls/certs/pagure.io.cert
|
|
# SSLCertificateChainFile /etc/pki/tls/certs/pagure.io.intermediate.cert
|
|
# SSLCertificateKeyFile /etc/pki/tls/certs/pagure.io.key
|
|
|
|
{% if env == "staging" or datacenter == "iad2" %}
|
|
Alias /static /usr/lib/python3.6/site-packages/pagure/static/
|
|
{% else %}
|
|
Alias /static /usr/lib/python2.7/site-packages/pagure/static/
|
|
{% endif %}
|
|
Alias /grokmirror /srv/git/grokmirror
|
|
<Location />
|
|
WSGIProcessGroup pagureproc
|
|
</Location>
|
|
|
|
#</VirtualHost>
|
|
|
|
RewriteEngine on
|
|
|
|
# First try the instance-specific theme
|
|
RewriteCond "/usr/share/pagure_dist_git/static/$1" -f
|
|
RewriteRule "^/static/(.*)" "/usr/share/pagure_dist_git/static/$1" [L]
|
|
|
|
# Use the application default theme for files not customized
|
|
{% if env == "staging" or datacenter == "iad2" %}
|
|
RewriteRule "^/static/(.*)" "/usr/lib/python3.6/site-packages/pagure/static/$1" [L]
|
|
{% else %}
|
|
RewriteRule "^/static/(.*)" "/usr/lib/python2.7/site-packages/pagure/static/$1" [L]
|
|
{% endif %}
|