mirror of
git://f0xx.org/ac/ac-platform-edge
synced 2026-07-29 00:59:30 +03:00
fe: proxy legacy crashes heartbeat/upload without 301 redirect.
Old app RA polls POST to /crashes/api/heartbeat.php; permanent redirect drops JSON body and surfaces as HTTP 405 on control-plane status. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -19,6 +19,25 @@
|
||||
}
|
||||
|
||||
# --- Legacy /crashes/ → /issues/ (SPEC §7) ---
|
||||
# Old app builds POST type:ra here; 301 drops body (HttpURLConnection → GET → 405).
|
||||
location = /app/androidcast_project/crashes/api/heartbeat.php {
|
||||
proxy_pass http://ac_be_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
client_max_body_size 16m;
|
||||
}
|
||||
location = /app/androidcast_project/crashes/api/upload.php {
|
||||
proxy_pass http://ac_be_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
client_max_body_size 16m;
|
||||
}
|
||||
location = /app/androidcast_project/crashes {
|
||||
return 301 $scheme://$host/app/androidcast_project/issues/;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user