I have an Azure Container App that is running Nginx as a Proxy to an API Server
server { listen 80; server_name _; root /var/www/html; access_log /var/www/html/access.log; error_log /var/www/html/error.log error; index index.html; location /api/ { proxy_ssl_server_name on; proxy_http_version 1.1; proxy_pass http://api-url/; } location / { try_files $uri /index.html; } } Any requests to http://api-url seem to be working just fine, including very large JSON Responses.
Requests through the Proxy also work fine, until it returns a large JSON Response (not terribly large, roughly 100+ rows) at which point I get a 422 Invalid Response error. It doesn't happen 100% of the time but more than 90%, which is unusable.
What configurations am I missing?