I struggled with this for a while, and I tried different things. The solution that worked for me in OpenShift was this:
Set the variable DDP_DEFAULT_CONNECTION_URL
//for http process.env.DDP_DEFAULT_CONNECTION_URL = 'http://' + process.env.OPENSHIFT_APP_DNS + ':8000' //for ssl process.env.DDP_DEFAULT_CONNECTION_URL = 'https://' + process.env.OPENSHIFT_APP_DNS + ':8443'
According to this blog post
danielfbm
source share