dokku-redirect

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

Github 星跟踪图

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.

项目概况

主要编程语言Shell
编程语言Shell
许可证MIT License
最新版本名称0.7.1
第一版名称0.5.0
最后发布时间2021-04-13 13:09:10
首次发布2017-03-24 10:46:25
最后一次提交2021-04-13 13:09:10
创建于2015-10-18T23:06:51
推送于2021-04-13T17:09:11
提交数39
关注者数7
名称与所有者dokku/dokku-redirect
派生数9
星数87
问题数21
打开的问题数2
发布数6
语言数2
拉请求数7
关闭的拉请求数3
已启用问题?
已启用Wiki?
已存档?
是分叉?
已锁定?
是镜像?
是私有?
To the top