dokku / dokku-redirect

A plugin for dokku that gives the ability to set simple redirects for an application
MIT License
106 stars 9 forks source link

Support Dokku 0.5 proxy maps #10

Closed IlyaSemenov closed 8 years ago

IlyaSemenov commented 8 years ago

The current plugin is broken in Dokku 0.6.5 (see #9) as DOKKU_NGINX_PORT and DOKKU_NGINX_SSL_PORT have been replaced with DOKKU_PROXY_PORT_MAP.

This PR fixes this and also updates the code to conform to 0.6 style. Fixes #9.

josegonzalez commented 8 years ago

Any reason why we can't continue to support older dokku versions?

IlyaSemenov commented 8 years ago

Not in particular. I believe this PR can indeed be improved to be backwards compatible, but I don't see an easy way to test it on different versions.

darkpixel commented 8 years ago

Works for me! Thanks @IlyaSemenov