airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata] branch develop updated: Listen on non-default port for standalone pga deployment
Date Fri, 04 Jan 2019 15:23:16 GMT
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 d65899c  Listen on non-default port for standalone pga deployment
d65899c is described below

commit d65899c1f7b8e1b5a02d175b27beb9bb7ac8fcff
Author: Marcus Christie <machrist@iu.edu>
AuthorDate: Fri Jan 4 10:23:00 2019 -0500

    Listen on non-default port for standalone pga deployment
---
 .../inventories/standalone/group_vars/pga/vars.yml |  1 +
 .../standalone/templates/pga-vhost.conf.j2         | 26 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/dev-tools/ansible/inventories/standalone/group_vars/pga/vars.yml b/dev-tools/ansible/inventories/standalone/group_vars/pga/vars.yml
index 121ce69..333ef8d 100644
--- a/dev-tools/ansible/inventories/standalone/group_vars/pga/vars.yml
+++ b/dev-tools/ansible/inventories/standalone/group_vars/pga/vars.yml
@@ -36,6 +36,7 @@ doc_root_dir: "/var/www/portals/{{ gateway_id }}"
 #ssl_certificate_file: "/etc/pki/tls/certs/seagrid_org_cert.cer"
 #ssl_certificate_chain_file: "/etc/pki/tls/certs/seagrid_org_interm.cer"
 #ssl_certificate_key_file: "/etc/pki/tls/private/portal.seagrid.key"
+pga_vhost_template: "{{ inventory_dir }}/templates/pga-vhost.conf.j2"
 
 
 ## Keycloak related variables
diff --git a/dev-tools/ansible/inventories/standalone/templates/pga-vhost.conf.j2 b/dev-tools/ansible/inventories/standalone/templates/pga-vhost.conf.j2
new file mode 100644
index 0000000..ac8cef9
--- /dev/null
+++ b/dev-tools/ansible/inventories/standalone/templates/pga-vhost.conf.j2
@@ -0,0 +1,26 @@
+{% if vhost_server_redirect is defined %}
+<VirtualHost *:{{pga_default_http_port}}>
+    ServerName {{ vhost_server_redirect }}
+    Redirect "/" "http://{{ vhost_servername }}"
+</VirtualHost>
+{% endif %}
+
+# Add a listen on the non-default port (8008)
+Listen {{pga_default_http_port}}
+
+<VirtualHost *:{{pga_default_http_port}}>
+    ServerName {{ vhost_servername }}
+    {% if vhost_serveralias is defined %}
+    ServerAlias {{ vhost_serveralias }}
+    {% endif %}
+
+    DocumentRoot {{ doc_root_dir }}/public
+    <Directory "{{ doc_root_dir }}/public">
+       AllowOverride All
+       php_value upload_max_filesize {{ php_upload_max_filesize }}
+       php_value post_max_size {{ php_post_max_size }}
+    </Directory>
+    ErrorLog {{ httpd_log_dir[ansible_os_family] }}/{{ gateway_id }}.error.log
+    CustomLog {{ httpd_log_dir[ansible_os_family] }}/{{ gateway_id }}.requests.log combined
+
+</VirtualHost>


Mime
View raw message