Skip to content

Commit

Permalink
Get host and proto to all openmrs innstances
Browse files Browse the repository at this point in the history
  • Loading branch information
cintiadr committed Oct 22, 2017
1 parent b600fc5 commit 60bc4ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/host_vars/buea.openmrs.org/vars
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ nginx_vhosts:
return 301 https://msf.openmrs.org/openmrs;
}
location /openmrs {
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8084/openmrs;
}
Expand Down
4 changes: 4 additions & 0 deletions ansible/host_vars/garissa.openmrs.org/vars
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ nginx_vhosts:
return 301 https://demo.openmrs.org/openmrs;
}
location /openmrs {
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8080/openmrs;
}
Expand All @@ -83,6 +84,7 @@ nginx_vhosts:
return 301 https://qa-refapp.openmrs.org/openmrs;
}
location /openmrs {
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8081/openmrs;
}
Expand All @@ -104,6 +106,7 @@ nginx_vhosts:
return 301 https://modules-refapp.openmrs.org/openmrs;
}
location /openmrs {
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8082/openmrs;
}
Expand All @@ -125,6 +128,7 @@ nginx_vhosts:
return 301 https://uat-refapp.openmrs.org/openmrs;
}
location /openmrs {
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8083/openmrs;
}
Expand Down

0 comments on commit 60bc4ca

Please sign in to comment.