├── .gitignore ├── .travis.yml ├── LICENSE ├── Makefile ├── commands ├── nginx-pre-reload ├── readme.md └── test ├── assert.sh ├── commands_test.sh ├── expected ├── rad-app-nginx.conf ├── readme-app-1-custom-domain-nginx.conf ├── readme-app-2-subdomain-nginx.conf ├── readme-app-3-wildcard-nginx.conf ├── readme-app-4-multiple-domains-nginx.conf └── secure-app-nginx.conf ├── fixtures └── dokku │ ├── empty-app │ └── .gitkeep │ ├── rad-app │ ├── .gitkeep │ ├── DOMAINS │ ├── PORT │ └── nginx.conf.org │ ├── readme-app │ ├── .gitkeep │ ├── DOMAINS │ ├── PORT │ └── nginx.conf.org │ └── secure-app │ ├── .gitkeep │ ├── DOMAINS │ ├── PORT │ └── nginx.conf.org └── stubs ├── dokku ├── nginx ├── pluginhook └── sudo /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | test/fixtures/dokku/*-app/nginx.conf 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: bash 2 | script: make test 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/Makefile -------------------------------------------------------------------------------- /commands: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/commands -------------------------------------------------------------------------------- /nginx-pre-reload: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/nginx-pre-reload -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/readme.md -------------------------------------------------------------------------------- /test/assert.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/assert.sh -------------------------------------------------------------------------------- /test/commands_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/commands_test.sh -------------------------------------------------------------------------------- /test/expected/rad-app-nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/expected/rad-app-nginx.conf -------------------------------------------------------------------------------- /test/expected/readme-app-1-custom-domain-nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/expected/readme-app-1-custom-domain-nginx.conf -------------------------------------------------------------------------------- /test/expected/readme-app-2-subdomain-nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/expected/readme-app-2-subdomain-nginx.conf -------------------------------------------------------------------------------- /test/expected/readme-app-3-wildcard-nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/expected/readme-app-3-wildcard-nginx.conf -------------------------------------------------------------------------------- /test/expected/readme-app-4-multiple-domains-nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/expected/readme-app-4-multiple-domains-nginx.conf -------------------------------------------------------------------------------- /test/expected/secure-app-nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/expected/secure-app-nginx.conf -------------------------------------------------------------------------------- /test/fixtures/dokku/empty-app/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/dokku/rad-app/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/dokku/rad-app/DOMAINS: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/fixtures/dokku/rad-app/PORT: -------------------------------------------------------------------------------- 1 | 3456 2 | -------------------------------------------------------------------------------- /test/fixtures/dokku/rad-app/nginx.conf.org: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/fixtures/dokku/rad-app/nginx.conf.org -------------------------------------------------------------------------------- /test/fixtures/dokku/readme-app/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/dokku/readme-app/DOMAINS: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/fixtures/dokku/readme-app/PORT: -------------------------------------------------------------------------------- 1 | 3456 2 | -------------------------------------------------------------------------------- /test/fixtures/dokku/readme-app/nginx.conf.org: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/fixtures/dokku/readme-app/nginx.conf.org -------------------------------------------------------------------------------- /test/fixtures/dokku/secure-app/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/dokku/secure-app/DOMAINS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/dokku/secure-app/PORT: -------------------------------------------------------------------------------- 1 | 3456 2 | -------------------------------------------------------------------------------- /test/fixtures/dokku/secure-app/nginx.conf.org: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/neam/dokku-custom-domains/HEAD/test/fixtures/dokku/secure-app/nginx.conf.org -------------------------------------------------------------------------------- /test/stubs/dokku: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "[stub: dokku $@]" 4 | commands $@ 5 | -------------------------------------------------------------------------------- /test/stubs/nginx: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "[stub: nginx $@]" 4 | -------------------------------------------------------------------------------- /test/stubs/pluginhook: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "[stub: pluginhook $@]" 4 | ./$@ 5 | -------------------------------------------------------------------------------- /test/stubs/sudo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "[stub: sudo $@]" 4 | --------------------------------------------------------------------------------