You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2020/10/08 16:24:05 UTC
[airavata] branch develop updated: Ansible: update simccs virtual
host template
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/develop by this push:
new a306205 Ansible: update simccs virtual host template
a306205 is described below
commit a30620542a2e866f3834016e30a492eda3bc24d9
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Thu Oct 8 12:13:01 2020 -0400
Ansible: update simccs virtual host template
---
.../develop/host_vars/simccs/files/django-ssl-vhost.conf.j2 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dev-tools/ansible/inventories/scigap/develop/host_vars/simccs/files/django-ssl-vhost.conf.j2 b/dev-tools/ansible/inventories/scigap/develop/host_vars/simccs/files/django-ssl-vhost.conf.j2
index 6090cd1..2e482d2 100644
--- a/dev-tools/ansible/inventories/scigap/develop/host_vars/simccs/files/django-ssl-vhost.conf.j2
+++ b/dev-tools/ansible/inventories/scigap/develop/host_vars/simccs/files/django-ssl-vhost.conf.j2
@@ -60,10 +60,21 @@
Require all granted
</Directory>
+ {# Additional aliases #}
+ {% for alias in vhost_aliases %}
+ Alias "{{ alias.url }}" "{{ alias.path }}"
+ <Directory "{{ alias.path }}">
+ Require all granted
+ </Directory>
+ {% endfor %}
+
WSGIDaemonProcess {{ vhost_servername }} display-name=%{GROUP} python-home={{ doc_root_dir }}/venv python-path={{ doc_root_dir }}/airavata-django-portal processes={{ django_wsgi_processes }} user={{ user }} group={{ group }}
WSGIProcessGroup {{ vhost_servername }}
WSGIScriptAlias / {{ doc_root_dir }}/airavata-django-portal/django_airavata/wsgi.py
+ WSGIApplicationGroup %{GLOBAL}
+ # To allow bearer token based authorization, pass 'Authorization' through to Django process
+ WSGIPassAuthorization On
<Directory {{ doc_root_dir }}/airavata-django-portal/django_airavata>
<Files wsgi.py>