Disable nginx vhosts via dokku config:set myapp NO_VHOST=1. Closes #485

This commit is contained in:
Jose Diaz-Gonzalez
2014-11-22 16:42:55 -05:00
parent 16fd7ebc6b
commit 69f360864f
2 changed files with 38 additions and 8 deletions

View File

@@ -38,3 +38,13 @@ dokku nginx:import-ssl myapp < archive-of-certs.tar
```
This archive should is expanded via `tar xvf`. It should contain `server.crt` and `server.key`.
## Disabling VHOSTS
If desired, it is possible to disable vhosts by setting the `NO_VHOST` environment variable:
```bash
dokku config:set myapp NO_VHOST=1
```
On subsequent deploys, the nginx virtualhost will be discarded. This is useful when deploying internal-facing services that should not be publicly routeable.