From bff273d625554ce43dbb5515172ddde9a759ef98 Mon Sep 17 00:00:00 2001 From: Felix Wolfsteller Date: Fri, 10 Jul 2015 12:08:29 +0200 Subject: [PATCH 1/3] in nginx doc, mention where original templates are found by default. --- docs/nginx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/nginx.md b/docs/nginx.md index 6f87d4bbb..1bc9ca8be 100644 --- a/docs/nginx.md +++ b/docs/nginx.md @@ -56,7 +56,7 @@ This archive should is expanded via `tar xvf`. It should contain `server.crt` an > New as of 0.3.10 -Dokku currently templates out an nginx configuration that is included in the `nginx-vhosts` plugin. If you'd like to provide a custom template for your application, you should copy the existing template - ssl or non-ssl - into your `$DOKKU_ROOT/$APP` directory at the file `nginx.conf.template`. +Dokku currently templates out an nginx configuration that is included in the `nginx-vhosts` plugin. If you'd like to provide a custom template for your application, you should copy the existing template - ssl or non-ssl - into your `$DOKKU_ROOT/$APP` directory at the file `nginx.conf.template`. If you followed the default installation path, the original templates are found in `/var/lib/dokku/plugins/nginx-vhosts/templates/nginx{.ssl,}.conf.template` . For instance - assuming defaults - to customize the nginx template in use for the `myapp` application, create a file at `/home/dokku/myapp/nginx.conf.template` with the following contents: From bf1ff080b693ce2e3bed2171ba10645d71e8d499 Mon Sep 17 00:00:00 2001 From: Felix Wolfsteller Date: Fri, 10 Jul 2015 12:21:29 +0200 Subject: [PATCH 2/3] in nginx conf mention how to apply template changes (i assume deploy is the answer). --- docs/nginx.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/nginx.md b/docs/nginx.md index 1bc9ca8be..8a49aa3a9 100644 --- a/docs/nginx.md +++ b/docs/nginx.md @@ -94,6 +94,8 @@ A few tips for custom nginx templates: - Templated files will be validated via `nginx -t`. - Application environment variables can be used within your nginx configuration. +After your changes a `dokku reploy myapp` will regenerate the `/home/dokku/myapp/nginx.conf` file which is then used. + ## Customizing hostnames Applications typically have the following structure for their hostname: From f68b126bc9a82ffa58d75df8c217f939f2a1c702 Mon Sep 17 00:00:00 2001 From: Felix Wolfsteller Date: Fri, 10 Jul 2015 12:22:07 +0200 Subject: [PATCH 3/3] fix typo --- docs/nginx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/nginx.md b/docs/nginx.md index 8a49aa3a9..154dc3635 100644 --- a/docs/nginx.md +++ b/docs/nginx.md @@ -94,7 +94,7 @@ A few tips for custom nginx templates: - Templated files will be validated via `nginx -t`. - Application environment variables can be used within your nginx configuration. -After your changes a `dokku reploy myapp` will regenerate the `/home/dokku/myapp/nginx.conf` file which is then used. +After your changes a `dokku deploy myapp` will regenerate the `/home/dokku/myapp/nginx.conf` file which is then used. ## Customizing hostnames