docs: clarify Procfile/nginx.conf usage

[ci skip]
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2017-09-27 23:14:23 -04:00
1 parent 0bd6b041c8
commit 657bb1d2a1
1 file changed
+4 -2
+4 -2
View File
@@ -201,11 +201,11 @@ service nginx reload
The example above uses additional configuration files directly on the Dokku host. Unlike the `nginx.conf.sigil` file, these additional files will not be copied over from your application repo, and thus need to be placed in the `/home/dokku/myapp/nginx.conf.d/` directory manually. The example above uses additional configuration files directly on the Dokku host. Unlike the `nginx.conf.sigil` file, these additional files will not be copied over from your application repo, and thus need to be placed in the `/home/dokku/myapp/nginx.conf.d/` directory manually.
If you are using a `Procfile` and importing a `nginx.conf` file, for example: For PHP Buildpack users, you will also need to provide a `Procfile` and an accompanying `nginx.conf` file to customize the nginx config *within* the container. The following are example contents for your `Procfile`
web: vendor/bin/heroku-php-nginx -C nginx.conf -i php.ini php/ web: vendor/bin/heroku-php-nginx -C nginx.conf -i php.ini php/
you also need to also add your additional nginx configuration to the `nginx.conf` file, like so: Your `nginx.conf` file - not to be confused with Dokku's `nginx.conf.sigil` - would also need to be configured as shown in this example:
client_max_body_size 50m; client_max_body_size 50m;
location / { location / {
@@ -213,6 +213,8 @@ you also need to also add your additional nginx configuration to the `nginx.conf
try_files $uri $uri/ /index.php$is_args$args; try_files $uri $uri/ /index.php$is_args$args;
} }
Please adjust the `Procfile` and `nginx.conf` file as appropriate.
## Domains plugin ## Domains plugin
See the [domain configuration documentation](/docs/configuration/domains.md). See the [domain configuration documentation](/docs/configuration/domains.md).