Template for running a nginx proxy for soon to be migrated instances. Sites will be proxied to http://old.$host and https://old.$host, just need to add old.blabla.com to DNS and things will hapen automagicaly. This is compatible with openshift-letsencrypt.
You need oc (https://github.com/openshift/origin/releases) localy installed:
create a new project
oc new-project openshift-migrationproxy \
--description="Proxy - nginx" \
--display-name="Nginx migration proxy"
Clone the repository
git clone https://github.com/ure/openshift-migrationproxy.git
cd openshift-migrationproxy
Create the BuildConfig and DeploymentConfig
oc create -f BuildConfig.yaml
oc create -f DeploymentConfig.yaml
Deploy
oc new-app https://github.com/ure/openshift-migrationproxy.git
Create routes for sites to be proxied
oc create -f Route.yaml