-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
Description of problem:
The nginx custom template documentation here http://dokku.viewdocs.io/dokku/deployment/ssl-configuration/#running-behind-a-load-balancer has an error
Indeed, the upstream directive should be outside of the server directive. Otherwise when deploying an app you get this error:
nginx: [emerg] "upstream" directive is not allowed here in /home/dokku/voodoo-akreshop/nginx.conf:55
nginx: configuration file /etc/nginx/nginx.conf test failed
The solution is to close the server directive with } before the upstream directive instead of after as in the example.
Output of the following commands
uname -a:
Linux ubuntu-2gb-nyc3-01 3.13.0-77-generic issue #120 add step to clean up all dead instances and none used images #121-Ubuntu SMP Wed Jan 20 10:50:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linuxfree -m:
total used free shared buffers cached
Mem: 2001 1867 134 41 38 661
-/+ buffers/cache: 1167 834
Swap: 0 0 0
docker version:
Client:
Version: 1.10.3
API version: 1.22
Go version: go1.5.3
Git commit: 20f81dd
Built: Thu Mar 10 15:54:52 2016
OS/Arch: linux/amd64
Server:
Version: 1.10.3
API version: 1.22
Go version: go1.5.3
Git commit: 20f81dd
Built: Thu Mar 10 15:54:52 2016
OS/Arch: linux/amd64
docker -D info:
Containers: 33
Running: 12
Paused: 0
Stopped: 21
Images: 127
Server Version: 1.10.3
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 279
Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: null host bridge
Kernel Version: 3.13.0-77-generic
Operating System: Ubuntu 14.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.955 GiB
Name: ubuntu-2gb-nyc3-01
ID: SNSI:MJX6:PLNX:IHYB:IGQ7:MXYL:NULB:I6ES:XAY4:Z7DG:U4LZ:YWPG
WARNING: No swap limit support
sigil -v: 0.4.0docker run -ti gliderlabs/herokuish:latest herokuish version:
herokuish: 0.3.8
buildpacks:
heroku-buildpack-clojure v73
heroku-buildpack-go v22
heroku-buildpack-gradle v17
heroku-buildpack-grails v19
heroku-buildpack-java v42
heroku-buildpack-multi v1.0.0
heroku-buildpack-nodejs v87
heroku-buildpack-php v90
heroku-buildpack-play v24
heroku-buildpack-python v74
heroku-buildpack-ruby v141
heroku-buildpack-scala v64
buildpack-nginx v5
dokku version: v0.5.2-1-g20dfd20dokku plugin:
How was dokku installed?: provided bash script
How reproducible:
deploy any app with such an nginx template http://dokku.viewdocs.io/dokku/deployment/ssl-configuration/#running-behind-a-load-balancer