35 lines
1.1 KiB
Django/Jinja
35 lines
1.1 KiB
Django/Jinja
{% if deployment_type in ['stg', 'prod'] %}
|
|
WSGIDaemonProcess resultsdb_frontend user=apache group=apache threads=20 processes=4
|
|
{% else %}
|
|
WSGIDaemonProcess resultsdb_frontend user=apache group=apache threads=5
|
|
{% endif %}
|
|
WSGIScriptAlias /{{ resultsdb_fe_endpoint }} /usr/share/resultsdb_frontend/resultsdb_frontend.wsgi
|
|
WSGISocketPrefix run/wsgi
|
|
|
|
# this isn't the best way to force SSL but it works for now
|
|
#RewriteEngine On
|
|
#RewriteCond %{HTTPS} !=on
|
|
#RewriteRule ^/resultsdb_frontend/admin/?(.*) https://%{SERVER_NAME}/$1 [R,L]
|
|
|
|
<Directory /usr/share/resultsdb_frontend>
|
|
WSGIProcessGroup resultsdb_frontend
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIScriptReloading On
|
|
<IfModule mod_authz_core.c>
|
|
# Apache 2.4
|
|
Require all granted
|
|
</IfModule>
|
|
<IfModule !mod_auth_core.c>
|
|
Order allow,deny
|
|
Allow from all
|
|
</IfModule>
|
|
|
|
</Directory>
|
|
|
|
#Alias /resultsdb_frontend/static /var/www/resultsdb_frontend/resultsdb_frontend/static
|
|
|
|
#<Directory /var/www/resultsdb_frontend/resultsdb_frontend/static>
|
|
#Order allow,deny
|
|
#Allow from all
|
|
#</Directory>
|
|
|