server { listen 8080; root /usr/share/nginx/html; location /api { client_max_body_size 10m; proxy_pass http://app:8080/; } }