Commit Graph

497 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
319d20ea75 updaged formatting 2026-01-12 21:50:05 -05:00
Luke Berndt
75ad10eed4 forgot the tag here 2026-01-12 21:34:32 -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
86b1f6383d fix for cut off event calls 2025-09-25 21:14:41 -04:00
Luke Berndt
ba9224d2a4 fixed an error that allowed for duplicate shortnames 2025-08-06 07:28:45 -04:00
Luke Berndt
4204e2d197 Update MediaPlayer.js 2025-07-12 11:03:25 -04:00
Luke Berndt
57d3cb87da acitivity is back and emergency is highlighted 2025-07-12 10:43:04 -04:00
Luke Berndt
0f69a3e9da add destroy 2025-07-12 10:10:21 -04:00
Luke Berndt
5bec2a7809 Update CallItem.js 2025-07-11 07:16:53 -04:00
Luke Berndt
bc6868e1d4 never sleep 2025-06-25 22:04:36 -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
Luke Berndt
a64b29a443 Merge pull request #177 from tadscottsmith/save-patches
Save patch infomation for calls.
2024-12-16 21:53:09 -05:00
Tad Smith
350c83c259 Save patch infomation for calls. 2024-12-13 20:46:06 +00:00
Luke Berndt
29d72525bd cleanup 2024-11-17 08:45:22 -05:00
Luke Berndt
f5e77da1b3 more terms links 2024-11-17 08:41:19 -05:00
Luke Berndt
9522f60e60 updated about page 2024-11-17 08:34:49 -05:00
Luke Berndt
fead681623 volume slider 2024-10-24 22:04:15 -04:00
Luke Berndt
61efcc44b4 Better Event Creation 2024-10-20 22:28:45 -04:00
Luke Berndt
6c91a6d1d1 one change 2024-10-19 09:51:10 -04: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
591e245fa6 add marcsip 2024-09-25 19:11:54 -04:00
Luke Berndt
5eaf2308f8 Merge pull request #174 from openmhz/wavesurfer
Wavesurfer
2024-09-22 22:16:43 -04:00
Luke Berndt
c9f70e4d0a small adjustment 2024-09-22 22:06:44 -04:00
Luke Berndt
752bb3dfa9 More Mongoose connections - updated wavesurfer look 2024-09-22 21:56:44 -04:00
Luke Berndt
5817bea3b7 smaller buttons 2024-09-21 11:05:51 -04:00
Luke Berndt
475c67eed7 handle play in background 2024-09-21 10:19:01 -04:00
Luke Berndt
fd61e89daf Looking good! 2024-09-21 08:10:38 -04:00
Luke Berndt
66097b6339 looking better with custom CSS 2024-09-19 22:34:41 -04:00
Luke Berndt
fb823ab46d it works 2024-09-16 21:47:46 -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
8411efa285 Merge pull request #172 from openmhz/stats-display
fixes for slow
2024-09-15 09:36:15 -04:00