This repository was archived by the owner on May 24, 2023. It is now read-only.

Description
Is your feature request related to a problem? Please describe.
We use nginx openshift router to expose grpc services and from time to time we got errors like:
<title>413 Request Entity Too Large</title>
413 Request Entity Too Large
nginx/1.15.6
Describe the solution you'd like
add client_max_body_size to the golang template. It can get its value from env. var or define it static but bigger than 1M it has by default.
I can submit patch for that but I wonder in which context it is best to put it http or location?
If it is the latter perhaps it is best the value to come from annotation.
Describe alternatives you've considered
modify the golang template and hardcode it in the http context which will work for me I suppose