summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEntiacMT <[email protected]>2019-04-25 23:55:00 +0200
committerKasra Bigdeli <[email protected]>2019-04-25 17:55:00 -0400
commitf667aea46e67ccf44bc659c9cbdd9708f42ed7bb (patch)
tree9f9f06d4630377f18abe0321f099af9991f9e8de
parentd3894816856ca1360cad7d1f869da4292cfcd539 (diff)
downloadcaprover-one-click-apps-f667aea46e67ccf44bc659c9cbdd9708f42ed7bb.tar.gz
caprover-one-click-apps-f667aea46e67ccf44bc659c9cbdd9708f42ed7bb.zip
Adds option for setting the client_max_body_size (#59)
-rw-r--r--public/v1/apps/nginx-reverse-proxy.json11
1 files changed, 9 insertions, 2 deletions
diff --git a/public/v1/apps/nginx-reverse-proxy.json b/public/v1/apps/nginx-reverse-proxy.json
index 1d79ec6..735c5d7 100644
--- a/public/v1/apps/nginx-reverse-proxy.json
+++ b/public/v1/apps/nginx-reverse-proxy.json
@@ -8,7 +8,8 @@
"image": "caprover/nginx-reverse-proxy:latest",
"restart": "always",
"environment": {
- "UPSTREAM_HTTP_ADDRESS": "$$UPSTREAM_HTTP_ADDRESS"
+ "UPSTREAM_HTTP_ADDRESS": "$$UPSTREAM_HTTP_ADDRESS",
+ "CLIENT_MAX_BODY_SIZE": "$$CLIENT_MAX_BODY_SIZE"
}
}
}
@@ -23,6 +24,12 @@
"description": "For example use https://caprover.com to forward all request to CapRover.\n If you're forwarding http requests to a CapRover internal app use http://srv-captain--yourappnamehere or if you want a particular port, use http://srv-captain--yourappnamehere:8080",
"defaultValue": "",
"validRegex": "/^(http:\\/\\/|https:\\/\\/)\\S*$/"
+ }, {
+ "id": "$$CLIENT_MAX_BODY_SIZE",
+ "label": "Client max body size",
+ "description": "Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.",
+ "defaultValue": "256M",
+ "validRegex": "/^(http:\\/\\/|https:\\/\\/)\\S*$/"
}]
-} \ No newline at end of file
+}