diff --git a/sim/cluster0/nginx/apps-port80.conf b/sim/cluster0/nginx/apps-port80.conf index e9e814e..cf0bd8a 100644 --- a/sim/cluster0/nginx/apps-port80.conf +++ b/sim/cluster0/nginx/apps-port80.conf @@ -108,7 +108,16 @@ server { fastcgi_param SCRIPT_FILENAME /var/www/ac/composed/backend/public/api/upload.php; fastcgi_param SCRIPT_NAME /app/androidcast_project/issues/api/upload.php; fastcgi_param REQUEST_URI $request_uri; - client_max_body_size 4m; + client_max_body_size 16m; + } + + location = /app/androidcast_project/issues/api/ticket_attachments.php { + include fastcgi_params; + fastcgi_pass 127.0.0.1:9000; + fastcgi_param SCRIPT_FILENAME /var/www/ac/composed/backend/public/api/ticket_attachments.php; + fastcgi_param SCRIPT_NAME /app/androidcast_project/issues/api/ticket_attachments.php; + fastcgi_param REQUEST_URI $request_uri; + client_max_body_size 16m; } location ^~ /app/androidcast_project/issues/ { @@ -117,7 +126,7 @@ server { fastcgi_param SCRIPT_FILENAME /var/www/ac/composed/backend/public/index.php; fastcgi_param SCRIPT_NAME /app/androidcast_project/issues/index.php; fastcgi_param REQUEST_URI $request_uri; - client_max_body_size 4m; + client_max_body_size 16m; } # Legacy /crashes/ → 301 to /issues/ (SPEC §7) @@ -137,6 +146,15 @@ server { return 301 $public_scheme://$http_host/app/androidcast_project/issues/api/upload.php; } + # Legacy heartbeat — serve POST in-place (301 redirect drops body; old apps poll type:ra here). + location = /app/androidcast_project/crashes/api/heartbeat.php { + include fastcgi_params; + fastcgi_pass 127.0.0.1:9000; + fastcgi_param SCRIPT_FILENAME /var/www/ac/composed/backend/public/api/heartbeat.php; + fastcgi_param SCRIPT_NAME /app/androidcast_project/issues/api/heartbeat.php; + fastcgi_param REQUEST_URI /app/androidcast_project/issues/api/heartbeat.php; + } + location ^~ /app/androidcast_project/graphs/assets/ { alias /var/www/ac/composed/backend/public/assets/; }