This commit is contained in:
@@ -10,6 +10,11 @@ server {
|
||||
|
||||
# API -> api container. The SPA calls same-origin /api/... (environment.prod.ts).
|
||||
location /api/ {
|
||||
# nginx defaults to 1 MB, which 413s phone-camera receipt uploads before they
|
||||
# reach the API. Keep this >= the largest API [RequestSizeLimit] (offerings = 50 MB)
|
||||
# so the per-endpoint limits in the controllers stay the real authority.
|
||||
client_max_body_size 50m;
|
||||
|
||||
set $upstream_api api;
|
||||
proxy_pass http://$upstream_api:8080$request_uri;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user