commit
d8602c52af
1 file changed
+15
-1
@@ -194,13 +194,27 @@ That means you can put additional configuration in separate files, for example t
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
mkdir /home/dokku/myapp/nginx.conf.d/
|
mkdir /home/dokku/myapp/nginx.conf.d/
|
||||||
echo 'client_max_body_size 50M;' > /home/dokku/myapp/nginx.conf.d/upload.conf
|
echo 'client_max_body_size 50m;' > /home/dokku/myapp/nginx.conf.d/upload.conf
|
||||||
chown dokku:dokku /home/dokku/myapp/nginx.conf.d/upload.conf
|
chown dokku:dokku /home/dokku/myapp/nginx.conf.d/upload.conf
|
||||||
service nginx reload
|
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.
|
||||||
|
|
||||||
|
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/
|
||||||
|
|
||||||
|
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;
|
||||||
|
location / {
|
||||||
|
index index.php;
|
||||||
|
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).
|
||||||
|
|||||||
Reference in new issue
Block a user