Skip to content

Instantly share code, notes, and snippets.

@IlyaSemenov
Created August 1, 2016 09:01
Show Gist options
  • Save IlyaSemenov/a2536e140514725b8fb5fea50072f405 to your computer and use it in GitHub Desktop.
Save IlyaSemenov/a2536e140514725b8fb5fea50072f405 to your computer and use it in GitHub Desktop.
Dokku certs:add losing https proxy map
root@dokku:~# uname -a
Linux dokku 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
root@dokku:~# free -m
total used free shared buff/cache available
Mem: 3950 363 527 163 3059 3327
Swap: 0 0 0
root@dokku:~# docker version
Client:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4
Git commit: b9f10c9
Built: Wed Jun 1 22:00:43 2016
OS/Arch: linux/amd64
Server:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4
Git commit: b9f10c9
Built: Wed Jun 1 22:00:43 2016
OS/Arch: linux/amd64
root@dokku:~# docker -D info
Containers: 14
Running: 7
Paused: 0
Stopped: 7
Images: 51
Server Version: 1.11.2
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 128
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: null host bridge
Kernel Version: 4.4.0-31-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.858 GiB
Name: dokku
ID: GP4W:HWAX:4G4D:QZV2:MTSC:GYRQ:M2GL:7WTQ:BC3G:RAFC:YU7B:OLN5
Docker Root Dir: /var/lib/docker
Debug mode (client): true
Debug mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
root@dokku:~# sigil -v
0.4.0
root@dokku:~# docker run -ti gliderlabs/herokuish:latest herokuish version
herokuish: 0.3.13
buildpacks:
emberjs.tgz latest
buildpack-nginx v5
heroku-buildpack-clojure v75
heroku-buildpack-erlang fa17af9
heroku-buildpack-go v36
heroku-buildpack-gradle v17
heroku-buildpack-grails v20
heroku-buildpack-java v44
heroku-buildpack-multi v1.0.0
heroku-buildpack-nodejs v90
heroku-buildpack-php v102
heroku-buildpack-play v26
heroku-buildpack-python v80
heroku-buildpack-ruby v146
heroku-buildpack-scala v70
root@dokku:~# dokku version
0.6.5
root@dokku:~# dokku plugin
plugn: dev
00_dokku-standard 0.6.5 enabled dokku core standard plugin
20_events 0.6.5 enabled dokku core events logging plugin
apps 0.6.5 enabled dokku core apps plugin
build-env 0.6.5 enabled dokku core build-env plugin
certs 0.6.5 enabled dokku core certificate management plugin
checks 0.6.5 enabled dokku core checks plugin
common 0.6.5 enabled dokku core common plugin
config 0.6.5 enabled dokku core config plugin
docker-options 0.6.5 enabled dokku core docker-options plugin
domains 0.6.5 enabled dokku core domains plugin
enter 0.6.5 enabled dokku core enter plugin
git 0.6.5 enabled dokku core git plugin
http-auth 0.4.0 enabled HTTP authentication for apps
letsencrypt 0.8.4 enabled Automated installation of let's encrypt TLS certificates
logs 0.6.5 enabled dokku core logs plugin
named-containers 0.6.5 enabled dokku core named containers plugin
nginx-vhosts 0.6.5 enabled dokku core nginx-vhosts plugin
plugin 0.6.5 enabled dokku core plugin plugin
postgres 1.0.0 enabled dokku postgres service plugin
proxy 0.6.5 enabled dokku core proxy plugin
ps 0.6.5 enabled dokku core ps plugin
rabbitmq 1.0.0 enabled dokku rabbitmq service plugin
redirect 0.4.0 enabled Simple redirects for apps
repo 0.5.3 enabled dokku core repo plugin
shell 0.6.5 enabled dokku core shell plugin
storage 0.6.5 enabled dokku core storage plugin
tags 0.6.5 enabled dokku core tags plugin
tar 0.6.5 enabled dokku core tar plugin
root@dokku:~# cat /home/dokku/myapp/nginx.conf
server {
listen [::]:80;
listen 80;
server_name myapp.com *.myapp.com;
access_log /var/log/nginx/myapp-access.log;
error_log /var/log/nginx/myapp-error.log;
return 301 https://$host:$request_uri;
}
upstream myapp-80 {
server 172.17.0.8:80;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment