0xJacky
413dc631ee
feat: add WebSocketTrustedOrigins configuration and implement origin validation for WebSocket connections
...
- Introduced `WebSocketTrustedOrigins` setting in `app.example.ini` and corresponding documentation.
- Refactored WebSocket origin checks across multiple API endpoints to utilize the new middleware for improved security.
- Added tests for the new origin validation logic to ensure proper handling of trusted origins and node secret requests.
2026-03-14 23:37:10 +08:00
0xJacky
ae86ef7a0c
fix(upstream): improve caching mechanism for disabled sockets and ensure cache validity
2025-10-05 16:09:42 +00:00
0xJacky
6de168c945
refactor(upstream): remove init function and implement caching for disabled sockets in service
2025-10-05 00:56:31 +00:00
0xJacky
de0467b9e7
feat: allow disabling proxy targets availability test #1327
2025-10-03 13:51:12 +00:00
0xJacky
39ebb729a6
enhance(cache): handle symlinks in file event handler
2025-07-27 10:30:58 +08:00
0xJacky
e7e15bbde4
enhance(upstream): proxy target parsing from multiple configs
2025-07-27 09:10:43 +08:00
Jacky
9113e82162
refactor: update upstream availability monitoring
2025-07-05 22:27:27 +08:00
Jacky
7580fa4572
feat: add proxy targets support in site and stream #904
2025-05-26 11:39:24 +08:00
Jacky
cb4977e5ab
refactor: nodes analytics ( #847 )
...
* refactor: nodes analytics
* feat(debug): add pprof in debug mode
* refactor: websocket error handler
2025-02-05 18:19:17 +08:00
Jacky
c5f5038d35
style(go): sort imports
2024-10-24 18:22:45 +08:00
Jacky
33a996e777
refactor: migrate to new cosy
2024-10-22 16:38:38 +08:00
Jacky
ff1399e044
enhance: handle websocket error
2024-07-20 18:35:06 +08:00
0xJacky
a63e85aa37
chore: update code styles for upstream.go
2023-12-15 23:22:38 +08:00
0xJacky
9a18005eae
enhance: do not test availability if not socket
2023-12-15 23:21:58 +08:00
0xJacky
53e1c32444
fix: websocket of upstream availability test not close
2023-12-15 22:34:29 +08:00
0xJacky
d9d8bee5d0
feat: upstream health check #166
2023-12-15 20:18:29 +08:00