wmluke / dokku-domains-plugin

Dokku plugin to create nginx vhost with multiple domains
MIT License
176 stars 21 forks source link

dokku-domains-plugin

Build Status Bitdeli Badge

Dokku plugin to create nginx vhost with multiple domains.

Deprecation Notice

As of v0.3.10, Dokku ships with a built-in domains plugin, which can also support SSL. To uninstall this plugin, see #15.

Installation

git clone https://github.com/wmluke/dokku-domains-plugin.git /var/lib/dokku/plugins/domains-plugin
dokku plugins-install

Commands

$ dokku help
    domains <app>                                   display the domains for an app
    domains:set <app> DOMAIN1 [DOMAIN2 ...]         set one or more domains

Simple usage

Your need to have app running with the same name!

Create vhost with multiple domains:

$ dokku domains:set myawesomeapp.com www.myawesomeapp.com            # Server side
$ ssh dokku@server domains:set myawesomeapp.com www.myawesomeapp.com # Client side

License

MIT