Merge pull request #4078 from gurpreetatwal/docs-nginx-dokku-template-source

This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2020-08-01 20:31:48 -04:00
commit d1b848e3eb
1 file changed
+5 -3
+5 -3
View File
@@ -856,9 +856,9 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
### `nginx-dokku-template-source` ### `nginx-dokku-template-source`
- Description: Customize the source location of the `dokku.conf` nginx configuration file - Description: Return the path to a `sigil` template that should be used to generate the `dokku.conf` nginx configuration file.
- Invoked by: `nginx-vhosts#install` - Invoked by: `nginx-vhosts#install`
- Arguments: - Arguments: None, however the `sigil` template can make use of the following variables: `$.DOKKU_ROOT $.NGINX_ROOT`
- Example: - Example:
```shell ```shell
@@ -866,9 +866,11 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
# TODO echo "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku.conf.sigil"
``` ```
The default template is viewable here: [plugins/nginx-vhosts/templates/dokku.conf.sigil](https://github.com/dokku/dokku/blob/master/plugins/nginx-vhosts/templates/dokku.conf.sigil)
### `nginx-hostname` ### `nginx-hostname`
- Description: Allows you to customize the hostname for a given app - Description: Allows you to customize the hostname for a given app