Trying to configure Nginx from Kong because the nginx default config has a proxy temp file limit that blocks 1GB downloads (or larger). A complication is that Kong runs in a docker container so we start cold every time.
We are using Kong as a reverse proxy, it provides https service and redirects requests in the clear to a slew of micro services, that works fine. My question is similar to this: NgInx as reverse proxy with Kong
Anyhow this page taught us to add an Nginx config parameter that disables use of a temp file: https://www.scalescale.com/tips/nginx/optimizing-nginx-for-serving-files-bigger-than-1gb/
proxy_max_temp_file_size 0;
So we're trying to figure out how to provide this config to Nginx via Kong. This Kong doc page suggests using a custom configuration template: https://getkong.org/docs/0.13.x/configuration/
Following those instructions we prepared a template file and invoked kong like this:
kong start -c kong.conf --nginx-conf custom_nginx.template
But at start we don't see the custom setting that we put into the template get propagated into the nginx conf file. Kong seems to create the Nginx config files at each startup. Is the answer right in front of us?? Do we have to modify the Kong LUA files? Thanks in advance.