Skip to content

Commit 15e459f

Browse files
committed
updated playbooks with redirects for primary hostname
1 parent 82eb4e1 commit 15e459f

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

playbooks/group_vars/all

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
server_hostname: mirrors.cyverse.org
2-
selinux_enabled: false
1+
selinux_enabled: false

playbooks/group_vars/edge

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
dc_version: DE/angular
1+
primary_hostname: datacommons-edge.cyverse.org
2+
3+
dc_version: edge
24
irods_host: data.iplantcollaborative.org
35
irods_port: 1247
46
irods_zone: iplant
@@ -8,5 +10,4 @@ irods_password:
810

911
terrain_api_host: https://everdene.iplantcollaborative.org
1012
terrain_api_key_path: /etc/ssl/terrain_api/terrain_api_key.pem
11-
12-
anon_files_api_host: https://de.iplantcollaborative.org/anon-files
13+
anon_files_api_host: https://de.iplantcollaborative.org/anon-files

playbooks/group_vars/prod

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
dc_version: v1.0.2
1+
primary_hostname: datacommons.cyverse.org
2+
3+
dc_version: v2.0.0
24
irods_host: data.iplantcollaborative.org
35
irods_port: 1247
46
irods_zone: iplant
57
irods_path: /iplant/home/shared
68
irods_user: anonymous
79
irods_password:
10+
11+
terrain_api_host: https://everdene.iplantcollaborative.org
12+
terrain_api_key_path: /etc/ssl/terrain_api/terrain_api_key.pem
13+
anon_files_api_host: https://de.iplantcollaborative.org/anon-files
14+

playbooks/group_vars/qa

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
dc_version: DE/angular
1+
primary_hostname: datacommons-qa.cyverse.org
2+
3+
dc_version: master
24
irods_host: qairods.iplantc.org
35
irods_port: 1247
46
irods_zone: iplant

playbooks/hosts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ ringo.iplantc.org
33

44
[qa]
55
marybell.iplantc.org
6-
129.114.6.147 ansible_user=rodeo selinux_enabled=true
76

87
[edge]
9-
rodney.iplantc.org
8+
rodney.iplantc.org

playbooks/roles/nginx/templates/default.conf.j2

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ upstream django {
55
server {
66
listen 80 default_server;
77

8-
server_name {{ server_hostname }};
8+
server_name {{ primary_hostname }};
9+
10+
if ($host != "{{ primary_hostname }}") {
11+
rewrite ^(.*)$ https://{{ primary_hostname }}$1;
12+
}
913

1014
charset utf-8;
1115

0 commit comments

Comments
 (0)