From f708d1f194ece11b1fe280f2ca1579ab1c08de66 Mon Sep 17 00:00:00 2001 From: Logan Marchione Date: Mon, 19 Jun 2023 15:13:42 -0400 Subject: [PATCH] Add NGINX_CLIENT_MAX_BODY_SIZE to example --- README.md | 10 ++++++---- docker-compose-dev.yml | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 97159c6..7636290 100644 --- a/README.md +++ b/README.md @@ -30,10 +30,11 @@ Runs a Nginx WebDav server in Docker - `X.X.X`: [Semantic version](https://semver.org/) (use if you want to stick on a specific version) ### Environment variables -| Variable | Required? | Definition | Example | Comments | -|-------------|-----------|----------------------------------|----------------------------|--------------------------------------------------------------| -| WEBDAV_USER | No | WebDav username | user | user AND pass need to be set for authentication to work | -| WEBDAV_PASS | No | WebDav password | password1 | user AND pass need to be set for authentication to work | +| Variable | Required? | Definition | Example | Comments | +|----------------------------|--------------------|----------------------------------------------------------------------------------------------------------------|----------------------------|--------------------------------------------------------------| +| WEBDAV_USER | No | WebDav username | user | user AND pass need to be set for authentication to work | +| WEBDAV_PASS | No | WebDav password | password1 | user AND pass need to be set for authentication to work | +| NGINX_CLIENT_MAX_BODY_SIZE | No (default: 250M) | Nginx's [client_max_body_size](https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) | 500M | Be sure to include the units. Set to `0` to disable. | ### Ports | Port on host | Port in container | Comments | @@ -56,6 +57,7 @@ services: environment: - WEBDAV_USER=user - WEBDAV_PASS=password1 + - NGINX_CLIENT_MAX_BODY_SIZE=500M networks: - webdav ports: diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index d6dbad7..45bfe68 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -9,6 +9,7 @@ services: environment: - WEBDAV_USER=user - WEBDAV_PASS=password1 + - NGINX_CLIENT_MAX_BODY_SIZE=500M networks: - webdav ports: