BETA: a plugin for dokku that gives the ability to set simple redirects for an application
Shell Makefile
Latest commit f9509d3 Aug 26, 2016 @josegonzalez josegonzalez committed on GitHub Merge pull request #10 from IlyaSemenov/master
Support Dokku 0.5 proxy maps

README.md

dokku-redirect

dokku-redirect is a plugin for dokku that gives the ability to set simple redirects for an application.

This plugin only redirects one domain to another and does not handle complete URLs. If source domain is managed by dokku and is TLS enabled, then nginx configuration for https redirects will be handled automatically.

Installation

# dokku 0.5+
$ dokku plugin:install https://github.com/dokku/dokku-redirect.git

Commands

$ dokku help
    redirect <app>                            Display the redirects set on app
    redirect:set <app> <source> <destination> Set a redirect from <source> domain to <destination> domain
    redirect:unset <app> <source>             Unset a redirect from <source>

Usage

Check redirects on my-app

$ dokku redirect my-app

SOURCE       DESTINATION
ma.dokku.me  my-app.dokku.me

Set a new redirect on my-app

$ dokku redirect:set my-app ma.dokku.me my-app.dokku.me

-----> Setting redirect for my-app...
       done

Unset an existing redirect

$ dokku redirect:unset my-app ma.dokku.me

-----> Unsetting redirect for my-app...
       done

License

This plugin is released under the MIT license. See the file LICENSE.