Commit graph

46 commits

Author SHA1 Message Date
Joachim Bauch
62587796ce
Move logging code to separate package. 2025-12-09 15:26:47 +01:00
Joachim Bauch
f338a7b91e
Don't use string formatting without parameters, optimize simple cases. 2025-12-05 11:13:08 +01:00
Joachim Bauch
c581bc14d5
lint: Enable "errchkjson" and update json.Marshal error handling. 2025-12-05 11:08:54 +01:00
Joachim Bauch
6ca41dee61
Don't use global logger. 2025-11-20 09:42:40 +01:00
Joachim Bauch
41c18d2531
Protect access to the debug pprof handlers. 2025-10-08 10:46:06 +02:00
Joachim Bauch
41728572fe
Move "StringMap" class to api module. 2025-09-26 13:50:18 +02:00
Joachim Bauch
51326069e2
Add dedicated types for different session ids. 2025-09-09 11:38:47 +02:00
Joachim Bauch
efb9771f47
Use "slices" / "iter" module where possible. 2025-08-18 08:29:09 +02:00
Joachim Bauch
210aec62db
Simlify splitting string into non-empty entries. 2025-08-14 16:54:28 +02:00
Joachim Bauch
639588f550
Modernize Go code and check from CI. 2025-08-14 09:23:25 +02:00
Joachim Bauch
3e6428d72f
Add type for string maps. 2025-07-30 10:48:31 +02:00
Joachim Bauch
613806be14
modernize: Replace "interface{}" with "any". 2025-07-30 09:44:18 +02:00
Joachim Bauch
5da0a5d4b0
Prepare internal APIs for multiple backend urls. 2025-07-17 08:41:37 +02:00
Joachim Bauch
ac35a0449d
Support multiple sessions for dialout.
Will try to start request with all of them until one succeeds. Returns first
received error if all failed.
2025-06-12 11:58:07 +02:00
Joachim Bauch
3e9bace0ad
Move serverinfo result generation to source, add nats, gprc and etcd. 2025-04-16 14:29:56 +02:00
Joachim Bauch
957d930613
Add "version" to dialin sessions. 2025-04-16 14:29:55 +02:00
Joachim Bauch
a5e41e4822
Include information on dialout sessions. 2025-04-16 14:29:54 +02:00
Joachim Bauch
d10469e1a6
Add serverinfo API. 2025-04-16 14:29:52 +02:00
Joachim Bauch
411cf34437
Use buffer pool for reading data. 2025-04-16 10:22:57 +02:00
Adphi
dcda0984fa
backend secrets: read with environment override
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
2025-01-28 19:21:53 +01:00
Joachim Bauch
2a1fd2e018
Support reloading allowed stats IPs. 2024-05-28 12:18:08 +02:00
Joachim Bauch
7f8e44b3b5
Add bruteforce detection to backend server room handler. 2024-05-22 10:34:29 +02:00
Joachim Bauch
4b76a49355
Don't use unnecessary pointer to "json.RawMessage".
The slice is a pointer already.
2024-05-16 20:58:42 +02:00
Joachim Bauch
aac4874e72
Make trusted proxies configurable and default to loopback / private IPs. 2024-05-16 14:44:00 +02:00
Joachim Bauch
97ae079cd6
Support old-style compat backend configurations. 2023-10-31 08:53:06 +01:00
Joachim Bauch
2a40c89585
Include backend URL to when starting dialout request. 2023-10-31 08:42:02 +01:00
Joachim Bauch
c72c821687
Check backend when searching for session to use for dialout. 2023-10-31 08:33:46 +01:00
Joachim Bauch
e333ddfd53
Make sure room ids for dial-out are numeric. 2023-10-26 10:43:51 +02:00
Joachim Bauch
e1273a3c52
Keep list of possible dialout sessions. 2023-10-26 09:53:58 +02:00
Joachim Bauch
d1544dcb2c
Implement message handler for dialout support. 2023-10-26 09:53:57 +02:00
Joachim Bauch
be949f90b1
Add common code to handle allowed IPs. 2023-03-16 17:11:57 +01:00
Joachim Bauch
1e8dd56f7e
stats: Support configuring subnets for allowed IPs. 2023-03-16 16:22:48 +01:00
Joachim Bauch
bb24bf5f0d
Implement switchto messages. 2023-01-30 15:41:55 +01:00
Joachim Bauch
95d5e50705
Disconnect sessions with the same room session id synchronously.
Previously there was a difference in the events being received by other
sessions for the clustered case compared to the single-server case.
Now the events / ordering are the same for both cases.
2022-07-11 10:39:06 +02:00
Joachim Bauch
a0d3af14e0
Add initial clustering support. 2022-06-30 11:35:28 +02:00
Joachim Bauch
0115c97946
Refactor asynchronous events to central location. 2022-06-24 13:37:35 +02:00
Joachim Bauch
c3040c7b06
Increase allowed body size for backend requests. 2022-05-13 14:59:15 +02:00
Joachim Bauch
81a52389aa
Stop using deprecated ioutil package. 2022-04-05 12:48:27 +02:00
Joachim Bauch
97f2a1d5f0
Add special events to update "incall" flags of all sessions. 2022-03-23 09:15:22 +01:00
Joachim Bauch
614c5f6e21
Fix issues reported by revive. 2022-02-11 12:09:42 +01:00
Joachim Bauch
2f8e7f9f66
Return available features in header of backend responses.
The header "X-Spreed-Signaling-Features" will contain a comma-separated list
of feature flags.
2021-11-03 15:24:27 +01:00
Joachim Bauch
c01caa94e6
Add prometheus metrics. 2021-08-10 08:50:39 +02:00
Joachim Bauch
2f4414561e
No need to include trailing newline in log messages. 2021-06-04 16:42:17 +02:00
Joachim Bauch
5ed89af1eb
Don't include TURN credentials in log message. 2021-06-01 08:24:48 +02:00
Joachim Bauch
c8e4bfe007
Fix various issues found by golangci-lint. 2021-04-26 17:25:52 +02:00
Joachim Bauch
8ba2e0ad64
Switch dependency tracking to Go modules.
With that bump minimum required version to Go 1.13.
2021-04-09 16:15:00 +02:00
Renamed from src/signaling/backend_server.go (Browse further)