Skip to content

Commit f987cd4

Browse files
author
Matthew Fisher
committed
Merge pull request #1777 from aledbf/custom_body_size
feat(router): custom request size.
2 parents d0f95ce + e5488e8 commit f987cd4

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

docs/managing_deis/router_settings.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ setting description
4646
/deis/router/gzipVary nginx gzipVary setting (default: on)
4747
/deis/router/gzipDisable nginx gzipDisable setting (default: "msie6")
4848
/deis/router/gzipTypes nginx gzipTypes setting (default: "application/x-javascript, application/xhtml+xml, application/xml, application/xml+rss, application/json, text/css, text/javascript, text/plain, text/xml")
49+
/deis/router/bodySize nginx body size setting (default: 1m)
4950
==================================== =============================================================================================================================================================================================
5051

5152
Using a custom router image

router/templates/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ http {
2929
gzip_types {{ .deis_router_gzipTypes }};
3030
gzip_proxied {{ .deis_router_gzipProxied }};
3131
gzip_vary {{ .deis_router_gzipVary }};{{ end }}
32+
33+
client_max_body_size {{ or (.deis_router_bodySize) "1m" }};
3234

3335
# send logs to STDOUT so they can be seen using 'docker logs'
3436
access_log /dev/stdout;

0 commit comments

Comments
 (0)