Skip to content

Commit

Permalink
Merge pull request #1 from OpenLMIS/MW-151
Browse files Browse the repository at this point in the history
Add CLIENT_MAX_BODY_SIZE property
  • Loading branch information
pgesek authored May 15, 2017
2 parents b396a8f + 441cd4d commit d1e3339
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ The directory to store Nginx log files. It defaults to `/var/log/nginx`.
##### `CONSUL_TEMPLATE_LOG_DIR`
The directory to store Consul Template log files. It defaults to `/var/log/consul-template`.

##### `CLIENT_MAX_BODY_SIZE`
Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. It defaults to `1m`.


## Volumes

Expand Down
1 change: 1 addition & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ server {
access_log {{ env "NGINX_LOG_DIR" }}/access.log upstream_time;
error_log {{ env "NGINX_LOG_DIR" }}/error.log;
server_name {{ env "VIRTUAL_HOST" }};
client_max_body_size {{ env "CLIENT_MAX_BODY_SIZE" }};

{{ $paramRegex := "{[\\w-]+}" }}
{{ $allRegex := "<[\\w-]+>" }}
Expand Down
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export SERVICE_TAG="${SERVICE_TAG:-openlmis-service}"
export RESOURCES_PATH="${RESOURCES_PATH:-resources}"
export NGINX_LOG_DIR="${NGINX_LOG_DIR:-/var/log/nginx}"
export CONSUL_TEMPLATE_LOG_DIR="${CONSUL_TEMPLATE_LOG_DIR:-/var/log/consul-template}"
export CLIENT_MAX_BODY_SIZE="${CLIENT_MAX_BODY_SIZE:-1m}"

# Run consul-template in background
CONSUL_PATH="${CONSUL_HOST}:${CONSUL_PORT}"
Expand Down

0 comments on commit d1e3339

Please sign in to comment.