Jose Diaz-Gonzalez
842ae10b74
Merge pull request #775 from progrium/plugin-help
...
Add PLUGIN:help command to each plugin
2014-11-22 17:58:24 -05:00
Jose Diaz-Gonzalez
cfc7c41e47
Add PLUGIN:help command to each plugin
2014-11-22 17:52:46 -05:00
Jose Diaz-Gonzalez
4754f241f2
Add the ability to customize an app's hostname using the nginx-hostname pluginhook
...
Closes #254
2014-11-22 17:18:33 -05:00
Jose Diaz-Gonzalez
69f360864f
Disable nginx vhosts via dokku config:set myapp NO_VHOST=1. Closes #485
2014-11-22 16:42:55 -05:00
Jose Diaz-Gonzalez
19609f7078
Import ssl certificates
...
Also ensures output is stored in proper tls directory
Closes #518
2014-11-22 16:19:06 -05:00
Fredrik Wollsén
580f89e63b
Plugin nginx-vhosts includes files in folder nginx.conf.d
2014-11-16 13:14:24 +02:00
Jose Diaz-Gonzalez
44201a66d9
Add set -eo statement to nginx-vhosts/dependencies
2014-11-16 02:59:07 -05:00
Jose Diaz-Gonzalez
7b361e564f
Use 2 spaces for formatting bash
...
Also remove extra trailing newlines
2014-11-16 02:58:52 -05:00
Jose Diaz-Gonzalez
f13c1031c7
Ensure there is a newline after calling set -e
2014-11-16 02:54:54 -05:00
Jose Diaz-Gonzalez
b766654b4f
Merge pull request #359 from plietar/rm-plugins
...
Remove plugins before copying them again.
2014-11-15 23:34:42 -05:00
Vincent Fretin
977d00efb4
The app certificates directory was renamed to tls in e2135a2c5f
2014-11-11 16:13:35 +01:00
Stafford Brunk
e94b46cb0c
Add a dependencies hook for plugin dependency management
2014-10-16 01:19:38 -04:00
Jose Diaz-Gonzalez
a67c2c927d
Fix issue where certain hosts will not have add-apt-repository installed due to missing packages
2014-10-04 18:39:31 -04:00
Jose Diaz-Gonzalez
2e5f88b285
Use -qq flag on apt-get to quiet installations of packages
2014-10-04 18:39:28 -04:00
Jose Diaz-Gonzalez
db7e36e0ca
Revert "Add CNAME option"
2014-09-29 23:44:23 -04:00
Jeff Lindsay
4e9d797d45
Merge pull request #657 from arthurnn/CNAME_option
...
Add CNAME option
2014-08-19 16:28:43 -05:00
Jeff Lindsay
07cdab6187
Merge pull request #562 from assaf/zero-downtime
...
Zero down-time deploy and server checks
2014-08-18 21:08:09 -05:00
Arthur Neves
0cd1839ce8
Add CNAME option
...
When a repo have a CNAME file, it will use the URL on it to map the server_name on ngnix
2014-08-14 14:43:35 -04:00
rhy-jot
4f5fc58629
Update cipher list
...
http://blog.cloudflare.com/killing-rc4-the-long-goodbye
2014-05-07 15:10:12 -07:00
Assaf Arkin
00ec004871
Zero down-time deploy and server checks
...
This change makes Dokku start up the new container, run a set of checks
against it, and only switch traffic over to the new containers if all
checks complete successfully. No requests are dropped during the switch
over.
To specify checks, add a CHECKS file to the root of your project
directory. This is a text file with one line per check. Empty lines and
lines starting with # are ignored.
A check is a relative URL and may be followed by expected content from
the page, for example:
/about Our Amazing Team
Even if you don’t use any checks, this change will prevent downtime
during switching from old to new container.
See: https://labnotes.org/zero-downtime-deploy-with-dokku/
2014-04-28 21:28:50 -07:00
Jessica Frazelle
969aed87c6
double brackets
2014-04-15 09:31:08 -04:00
Jessica Frazelle
2953ed2486
if dokku.conf has not been created, create it
2014-04-14 20:24:18 -04:00
Stafford Brunk
e2135a2c5f
Change cert folder name from ssl to tls
2014-04-08 06:48:50 -06:00
Stafford Brunk
22c25dc40a
Implement nginx spdy support
2014-04-03 07:20:18 -06:00
Stafford Brunk
dfac47cbe2
Allow symlinks for SSL cert detection in nginx-vhosts post-deploy
2014-04-03 07:15:21 -06:00
Stafford Brunk
bd5b2b210c
Factor common SSL settings out to the http block
2014-04-03 07:05:30 -06:00
Stafford Brunk
e33f5c94a5
Use listen 443 ssl instead of ssl on in vhost conf file
2014-04-03 07:04:35 -06:00
Paul Lietar
78591a618b
Remove plugins before copying them again.
...
This way plugins can rename/delete files w/o having old files lying around.
2013-11-29 20:57:53 +00:00
Lukas Schauer
95c9656fc8
nginx vhost ipv6 compatibility
...
IPv6 Compatibility (Nginx Default Site is IPv6 compatible, resulting in not-working vhosts when AAAA DNS entry is set)
2013-11-27 12:03:38 -08:00
Paul Lietar
10a8c75224
Add an empty help message to the nginx-vhosts plugin.
...
Not doing anything just destroys the help message coming from previous
plugins. Run cat to forward stdin into stdout.
2013-11-23 00:10:30 +00:00
Paul Lietar
455be29249
Fix commands, the easy way.
...
Don't use pluginhook to run the commands hook, just run all the scripts
in a loop.
2013-11-22 21:42:39 +00:00
rhy-jot
e8037da726
Use globs, set nullglob, and remove stdout redirection for import
2013-11-20 15:40:50 -08:00
rhy-jot
6d64edc16a
Update headers
2013-11-19 21:15:29 -08:00
rhy-jot
dae4e55f25
Merge pull request #265 from asm89/backup
...
Introduce `backup` plugin to export/import settings
2013-11-19 21:07:20 -08:00
Paul Lietar
83ce81fc51
Enable tracing in hooks when DOKKU_TRACE is set.
...
This makes it much easier to debug plugins.
Also source the 'dokkurc' file when starting dokku. This makes it easy
to define DOKKU_TRACE over ssh.
2013-11-18 20:59:48 +00:00
rhy-jot
805c5a27c6
Don't overwrite $DOKKU_ROOT/{HOSTNAME,VHOST}
2013-11-18 11:50:28 -08:00
Paul Lietar
a06d27ab45
Use the FQDN to setup the HOSTNAME and VHOST files.
...
The HOSTNAME environment var only contains the first part of the domain
name. Use the fqdn to have it entirely.
2013-11-15 03:07:51 +00:00
Alexander
8981b9e613
Introduce backup plugin to export/import settings
2013-11-14 21:52:49 +01:00
rhy-jot
3c1666076e
Silence nginx reloading
2013-10-30 17:17:53 -07:00
Jeff Lindsay
df7507d1be
normalizing shebang and bash options. also added long-term fix for bootstrap instructions
2013-10-29 17:13:02 -05:00
Paul Lietar
b5c8dd7436
Use DOKKU_ROOT instead of HOME.
...
HOME is not consistent if dokku is ran e.g. as root (for setup).
The DOKKU_ROOT variable will also make it possible to have the repositories stored in an arbitrary location (works-ish right now)
2013-10-28 21:15:17 +00:00
Paul Lietar
27d4bc8c3c
Replace gitreceive by a git plugin.
...
This removes the need for two distinct users.
Git pushes and dokku commands are sent using the same user.
2013-10-28 21:15:17 +00:00
Jose Diaz-Gonzalez
01d57ef0dc
New command: dokku delete <app>
...
Two new hooks are implemented:
- pre-delete $APP
- post-delete $APP
The following are implemented in the `post-delete` hook:
- `$APP` directory deletion (00_dokku-standard)
- nginx reload (nginx-vhosts)
The following command can be executed by either the `dokku` or `git` user as `sudo`:
sudo /etc/init.d/nginx reload
Refs #124
Closes #186
2013-10-27 17:49:11 -04:00
Jose Diaz-Gonzalez
bcfaefa896
Enable 'nginx reload' support for git and dokku user. Refs #124 . Refs #186
2013-10-25 02:42:49 -04:00
Alexander
85f14baad5
Introduce URL for app. Plugins can override this.
...
fixes #242
2013-10-24 13:44:05 +02:00
Jose Diaz-Gonzalez
a308ff6546
heroku-like configuration handling for dokku
...
refs #55
superscedes #188
2013-10-17 17:47:19 -04:00
Jason Staten
ba1f1bc30d
Add X-Forwarded-Port and X-Request-Start
...
Adding additional proxy headers to match what Heroku provides. Also,
X-Request-Start is compatible with NewRelic's latest agent[1].
[1]: http://blog.newrelic.com/2013/02/21/using-new-relic-on-heroku-read-how-our-new-ruby-agent-measures-queue-time/
2013-09-09 15:46:19 -06:00
Jason Staten
7f4f46a1e2
Set X-Forwarded-Proto Header
...
Heroku passes the X-Forwarded-Proto header to indicate the protocol of
the incoming request[1]. Ruby's rack relies on this header to
determine if a request is HTTPS[2].
Also, the X-Scheme header was removed to eliminate redundant passing of
the scheme.
[1]: https://devcenter.heroku.com/articles/http-routing#heroku-headers
[2]: https://github.com/rack/rack/blob/master/lib/rack/request.rb#L77
2013-09-09 12:12:01 -06:00
Jeffery Utter
1a7d68a3fc
Add nginx configure hook
...
This adds a pluginhook for nginx-configure to be called after the main nginx configuration is called and before nginx is reloaded. This will allow other plugins to modify the nginx configuration
2013-08-27 09:47:41 -05:00
Alexander
774b1f3c45
Merge pull request #180 from asm89/add-run-cmd
...
Add dokku run command to run commands in the app env
2013-08-21 14:47:51 -07:00