203 Commits

Author SHA1 Message Date
Luke Berndt
917a8faca6 Remove upload temp files on every exit path
Rejected uploads (unknown system, bad key, invalid file or source list) and
uploads that threw returned without deleting multer's temp file, leaking
751k files (39 GB) in the backend container since April.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:26:15 -05:00
Luke Berndt
6825aaf9a4 Reduce backend per-upload CPU to relieve upload timeouts
The Node main thread was saturated at about 39 uploads/s, overflowing the
listen queue so uploads timed out connecting from nginx.

- Enable keepAlive on the S3 agent; every upload did a full TLS handshake
- Remove OpenTelemetry tracing
- Cache the system key lookup for 60s
- Use lean queries when listing calls
- Serialize each call once in notify_clients, not per recipient
- Add an nginx upstream keepalive pool, and hold Node's keepAliveTimeout
  above it so nginx never reuses a connection Node has closed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:06:48 -05:00
Luke Berndt
c0492ebf53 Guard against missing x-forwarded-for on socket connect
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:05:18 -05:00
Luke Berndt
d49326c606 Update index.js 2026-02-22 17:01:14 -05:00
Luke Berndt
5ee9f8d63d fixed 2026-02-22 16:59:36 -05:00
Luke Berndt
245fb74bf3 scraper detection for CORS 2026-02-22 16:43:00 -05:00
Luke Berndt
29653b3e4f Update index.js 2026-02-22 16:16:44 -05:00
Luke Berndt
e4cd8072d9 unified email 2026-01-22 21:25:16 -05:00
Luke Berndt
9f3603e1f2 support for tags 2026-01-12 21:21:34 -05:00
Luke Berndt
0024b711ea fix for crash 2025-12-13 22:44:30 -05:00
Luke Berndt
57d3cb87da acitivity is back and emergency is highlighted 2025-07-12 10:43:04 -04:00
Luke Berndt
1568aabfda fix for events 2025-02-28 08:10:33 -05:00
Luke Berndt
0f309d5e43 return a string 2025-02-09 08:43:03 -05:00
Luke Berndt
25240eeb03 include the current time in the status request 2025-02-09 08:15:08 -05:00
Luke Berndt
7dea9e614b AWS S3 SDK fix 2025-02-06 22:08:05 -05:00
Luke Berndt
70e1c155ce add system status 2025-02-06 21:19:23 -05:00
Luke Berndt
24cc7ce605 fixes for Patches / Star bug 2025-01-06 22:04:18 -05:00
Luke Berndt
3d08ee65d4 tested 2025-01-03 11:10:11 -05:00
Luke Berndt
431e916fd1 firehoes 2025-01-03 09:35:27 -05:00
Tad Smith
350c83c259 Save patch infomation for calls. 2024-12-13 20:46:06 +00:00
Luke Berndt
414599dfa3 upgrade Mongo!! 2024-10-19 09:29:23 -04:00
Luke Berndt
a3616fc3b9 what is slow, really? 2024-10-13 16:57:23 -04:00
Luke Berndt
abee28c030 less messages, more meaning 2024-10-13 09:58:21 -04:00
Luke Berndt
f6853d69fb a fix for events? 2024-10-02 21:43:12 -04:00
Luke Berndt
5eaf2308f8 Merge pull request #174 from openmhz/wavesurfer
Wavesurfer
2024-09-22 22:16:43 -04:00
Luke Berndt
752bb3dfa9 More Mongoose connections - updated wavesurfer look 2024-09-22 21:56:44 -04:00
Luke Berndt
013a183cab Merge pull request #162 from zacharyfleck/master
Contact System: reply to sender, rather than admin
2024-09-15 10:13:51 -04:00
Luke Berndt
d0ffb84034 wait for otel detectors 2024-09-14 10:17:27 -04:00
Luke Berndt
8950f5a580 fix is in 2024-09-14 10:07:47 -04:00
Luke Berndt
a1c3929fb9 fixes for account, admin 2024-09-14 09:54:19 -04:00
Luke Berndt
aa9f142d86 more instrumentation 2024-09-14 09:14:10 -04:00
Luke Berndt
6098e679f0 fix a header sending error, sent twice 2024-09-13 22:26:19 -04:00
Luke Berndt
3117750b10 more connections 2024-09-13 14:14:30 -04:00
Luke Berndt
686069981f pool size 2024-09-12 21:35:17 -04:00
Luke Berndt
7d4be4bc49 more connections 2024-09-12 21:31:48 -04:00
Luke Berndt
470447f93c add Prefix for each shortname and talkgroup 2024-09-09 22:05:32 -04:00
Luke Berndt
2cbc6929e8 add upload server 2024-09-08 09:57:44 -04:00
Luke Berndt
1be715c042 fixed admin 2024-09-07 09:53:26 -04:00
Luke Berndt
f9bff813d2 less debug - normal sockets 2024-09-07 08:43:34 -04:00
Luke Berndt
370afd64f1 tons of sockets 2024-09-06 15:32:41 -04:00
Luke Berndt
1ce0f06ad8 more data 2024-09-06 15:03:06 -04:00
Luke Berndt
1266281a8e better math 2024-09-06 11:57:37 -04:00
Luke Berndt
5cf0291a14 agh 2024-09-06 11:50:42 -04:00
Luke Berndt
ac0ff712da fixed 2024-09-06 11:49:51 -04:00
Luke Berndt
17a9d50290 debug message 2024-09-06 11:47:00 -04:00
Luke Berndt
9a9f94bd99 no retry for upload 2024-09-06 11:13:03 -04:00
Luke Berndt
f330feff8e client count 2024-09-02 22:25:02 -04:00
Luke Berndt
0683b93e0c new graph on main page 2024-09-02 21:57:56 -04:00
Luke Berndt
79d0297f7c trying out cursor 2024-09-01 17:21:02 -04:00
Luke Berndt
1b6563c1a8 less eevnt logs 2024-09-01 13:54:05 -04:00