dokku-redirect

BETA: a plugin for dokku that gives the ability to set simple redirects for an application

Github stars Tracking Chart

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.11+
$ dokku plugin:install https://github.com/dokku/dokku-redirect.git

Commands

$ dokku help
    redirect <app>                           Display the redirects set on app
    redirect:set <app> <src> <dest> [<code>] Set a redirect from <src> domain to <dest> domain
    redirect:unset <app> <src>               Unset a redirect from <source>

Redirect Codes, Code, Name, Behavior, ----, ------------------, --------------------------------------------------, 301, Moved Permanently, (Default) Permanent, preserves method, 302, Found, Temporary, may change method to GET, 303, See Other, (HTTP/1.1) Temporary, changes method to GET, 307, Temporary Redirect, (HTTP/1.1) Temporary, preserves method, ## Usage

Check redirects on my-app

$ dokku redirect my-app

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

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.

Overview

Name With Ownerdokku/dokku-redirect
Primary LanguageShell
Program languageShell (Language Count: 2)
Platform
License:MIT License
Release Count10
Last Release Name0.9.1 (Posted on )
First Release Name0.5.0 (Posted on )
Created At2015-10-18 23:06:51
Pushed At2023-08-20 15:31:28
Last Commit At2023-08-20 11:31:27
Stargazers Count101
Watchers Count6
Fork Count9
Commits Count50
Has Issues Enabled
Issues Count26
Issue Open Count3
Pull Requests Count9
Pull Requests Open Count0
Pull Requests Close Count3
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top