matthewhirschey / ddh.org

datadrivenhypothesis.org is a resource to query 100+ GB of raw biological science data to develop data-driven hypotheses
2 stars 7 forks source link

Adds deployment to redirect http://ddh.org -> https://www.ddh.org #67

Closed dleehr closed 4 years ago

dleehr commented 4 years ago

Began with oc new-app httpd --dry-run=True -o yaml > Redirect.yaml

This provided an ImageStreamTag for the httpd image, pulled from the internal openshift docker registry, a DeploymentConfig to run a pod for it, and a service for incoming traffic.

I layered on a simple redirect config file to mount at /etc/httpd/conf.d/redirect.conf and added a route to accept traffic at http://datadrivenhypothesis.org

I started with nginx but wanted to keep it simple, and the provided nginx images are all s2i builds.

This is in-place now, so visiting http://datadrivenhypothesis.org/ will redirect you to the https site.

Fixes #66