Michael Hobbs
de9b1f6273
[ci skip] make help desc local consistent
2016-03-22 13:33:35 -07:00
Justin Clark
14a1d06c03
Collapse help into expandable command topics
2016-03-22 10:50:20 -07:00
Michael Hobbs
987c5cfb9c
use declare for description variable
2016-03-08 15:30:34 -05:00
Michael Hobbs
aa2415eeb8
more style/function tweaks
2016-03-03 22:11:35 -08:00
Michael S. Hobbs
89f289b433
subcommand restructure and bashstyle refactor. closes #1579
2016-03-03 22:11:35 -08:00
Justin Clark
86b4987588
Depreciate and remove dokku backup plugin, replace with documentation
2016-03-02 15:56:33 -08:00
Morris Jobke
7a9cf8abb1
Adds support for ArchLinux as host OS
...
* fix rsyslog handling
* don't hardcode dokku path
* add documentation for ArchLinux package build
* add vagrant machine to run the ArchLinux specific steps
* add step in release process for ArchLinux
* enhance docs for easy ArchLinux steps
2016-02-24 00:02:06 +01:00
Michael Hobbs
d1b87bd7b7
cleanup shellcheck SC2086
2016-02-23 07:50:06 -08:00
Michael Hobbs
9842d7498b
nginx-vhosts rewrite
2016-02-18 18:38:54 -08:00
Michael Hobbs
50194e5923
don't build nginx config if the app has not been deployed. closes #1806
2016-01-07 10:25:47 -08:00
Jose Diaz-Gonzalez
f11459faad
Avoid using the PPA for ubuntu versions 15.10 and higher
...
As of 15.10, we are graced with a relatively recent version of nginx, and thus no longer need access to the ppa. Assuming this is the only such issue, this should also allow us to support Ubuntu 16.04 without any future changes.
2015-11-25 18:59:59 -05:00
Michael Hobbs
a2ccbcbbfb
Merge pull request #1701 from progrium/mh-dont-call-nginx-build-twice
...
don't call nginx_build_config twice
2015-11-19 12:09:02 -05:00
Michael Hobbs
498d52ecdf
don't call nginx_build_config twice and make ip regex functions globally accessible
2015-11-19 09:10:04 -05:00
Jose Diaz-Gonzalez
6cd1b768ff
Fix casing on help output
...
[ci skip]
2015-11-19 03:14:48 -05:00
Michael Hobbs
09aa97f9e5
copy nginx.ssl.template from app container. fixes #1697
2015-11-18 17:36:02 -05:00
Michael Hobbs
0853850f7a
revert dokku group changes and add dokku user to adm group. closes #1572
2015-11-10 09:21:09 -08:00
Jose Diaz-Gonzalez
c2fc3141a9
Merge pull request #1643 from Flink/fix-no-vhost
...
Fix generated nginx config when NO_VHOST=1
2015-11-06 00:06:08 -05:00
Mirko Geissler
f85775b870
Only return users of group 'adm'
...
This fixes the issue where all groups starting with 'adm' are returned which broke the installation.
2015-11-05 11:51:29 +01:00
Jose Diaz-Gonzalez
d50f3cd151
Merge pull request #1655 from callahad/SC2162
...
Resolve SC2162: 'read without -r mangles backslashes'
2015-11-05 00:36:48 -05:00
Dan Callahan
ff07842dc5
Resolve SC2001: 'See if you can use ${var//search/replace} instead'
...
https://github.com/koalaman/shellcheck/wiki/SC2001
2015-11-04 20:43:41 -06:00
Dan Callahan
c389b213b5
Resolve SC2162: 'read without -r mangles backslashes'
...
More information:
https://github.com/koalaman/shellcheck/wiki/SC2162
http://wiki.bash-hackers.org/commands/builtin/read
2015-11-04 20:40:42 -06:00
Loïc Guitaut
804c822ace
Fix generated nginx config when NO_VHOST=1
...
Fixes #1625
2015-11-02 19:08:41 +01:00
Jose Diaz-Gonzalez
d17cb43bd3
Add missing sudo call to nginx reload
2015-10-25 22:56:48 -04:00
Jose Diaz-Gonzalez
18d6e1be3b
Add special case commands for instances where we are running dokku in debian
...
Refs #976
2015-10-24 23:12:38 -04:00
Michael Hobbs
0a9db4174b
patch broken nginx 1.8.0 logrotate script. closes #1578
2015-10-21 17:21:04 -07:00
Michael Hobbs
f9e636ddb1
make sure dokku can read nginx logs and don't remove other perms. closes #1572
2015-10-20 16:07:42 -07:00
Michael Hobbs
3f9d770a79
fix logic error in enabling nginx. fixes #1565
2015-10-15 15:59:16 -07:00
Kaspars Sprogis
dfafb7d0c7
Fixes #1516 Bug when you cannot use both SSL and non-SSL templates
...
at the same time.
2015-10-14 02:09:17 +03:00
Loïc Guitaut
75b06bb02e
Fix nginx configuration for SSL
...
When generating config for SSL vhost, configuration for non ssl vhost
was always added (not the redirect one). This should fix the issue.
2015-10-06 23:12:24 +02:00
Michael Hobbs
fd44635e74
Merge remote-tracking branch 'origin/reduce-trace-output' into 1123_mh-nginx-novhost
2015-09-18 17:34:32 -07:00
Michael Hobbs
3e18d9aff9
create functions for app/global vhost detection. make VHOST setting more explicit
2015-09-18 16:48:18 -07:00
Jose Diaz-Gonzalez
f914e6207b
Consolidate ipv4/ipv6 regex declarations behing nginx-vhosts plugin
2015-09-18 16:15:26 -04:00
Jose Diaz-Gonzalez
70511c340d
Check if command is implemented in a plugin before executing plugin code
...
Because of how plugin commands are implemented, their output can be incredibly verbose. Rather than executing even the `set -eo pipefail` parts of a plugin, we immediately check if the command is implemented by a plugin. If it is not, then we continue on as normal.
One side-effect of this change is that plugin commands need to be duplicated again:
- once in the command array
- once for the actual body of the command
- once in the help output
This is also quite hackish, and probably not the best way to decrease trace output. Note that we drop approximately 2k lines worth of logs with this change.
2015-09-18 16:09:59 -04:00
Jose Diaz-Gonzalez
467264d31f
Drop another ~1k lines from DOKKU_TRACE output
2015-09-18 16:09:59 -04:00
Michael Hobbs
6e7ca94d84
set SSL_VHOSTS to HOSTNAME if NO_VHOST is set and filter out server_name stanza if we have no hosts"
2015-09-17 22:47:03 -07:00
Michael Hobbs
f84c2bf6d8
be explicit about our template path since others are calling us as a function
2015-09-17 21:56:19 -07:00
Michael Hobbs
943e9b387c
fixing tests
2015-09-17 21:40:34 -07:00
Michael Hobbs
4dd4d7c567
initial pass at nginx proxy without VHOST. closes #1123
2015-09-17 19:09:38 -07:00
Jose Diaz-Gonzalez
27a2478a33
Follow bashstyle where possible
2015-09-16 16:06:31 -07:00
Jose Diaz-Gonzalez
1e479c63bd
Upgrade dokku installation to use docker-engine
...
Also simplify deb-based installation everywhere.
Closes #1295
Closes #1461
2015-09-15 13:35:45 -07:00
Jose Diaz-Gonzalez
1be4b94226
Merge pull request #1469 from progrium/1352_mh-nginx-logs-commands
...
Add nginx:access-logs and nginx:error-logs without sudo requirement
2015-09-15 12:03:32 -07:00
Jose Diaz-Gonzalez
64b57359b5
Merge pull request #1470 from progrium/1055_mh-nginx-ssl-terminated
...
Add nginx configuration for running behind load balancer
2015-09-15 11:20:35 -07:00
Michael Hobbs
c62ac4bcc3
Merge pull request #1372 from SonicHedgehog/default-nginx-conf
...
Do no longer force-install a default nginx.conf
2015-09-15 10:47:57 -07:00
Michael Hobbs
964a84dc31
rename ssl terminated template to conform to naming scheme
2015-09-15 10:36:14 -07:00
Assaf Arkin
1b84527f8c
ADDED Nginx configuration for running behind load balancer
2015-09-15 10:31:27 -07:00
Michael Hobbs
72a1b76b63
don't require sudo for tailing logs since we're root anyway
2015-09-15 10:15:22 -07:00
Jiahao Li
cca49230d9
Add nginx:access-logs and nginx:error-logs.
...
Add two nginx subcommands to display nginx error/access logs for a particular app.
2015-09-15 10:08:52 -07:00
Jose Diaz-Gonzalez
c929edfbe5
Source plugins from $PLUGIN_AVAILABLE_PATH when not using common plugin
...
This will allow us to override any core plugin
2015-09-15 02:22:08 -07:00
Michael Hobbs
8095df79f6
implement core plugin mgmt using plugn. add tests.
2015-09-15 02:17:28 -07:00
Jose Diaz-Gonzalez
c9bca838f0
Add missing $
2015-09-15 02:17:27 -07:00