feat(ws): opt-in allowed origins and observer key (#170)

This commit is contained in:
MrAlders0n
2026-09-27 11:41:11 -04:00
committed by GitHub
parent 91b4b457b5
commit dec643a2ad
14 changed files with 442 additions and 73 deletions
+1
View File
@@ -309,6 +309,7 @@ func main() {
r := router.New(h, reader, []*ingest.Worker{broker1, broker2}, router.Options{
MaxConnsPerIP: resolved.MaxConnsPerIP,
MaxConnectsPerMinute: resolved.MaxConnectsPerMinute,
WSAllowedOrigins: cfg.WebSocket.AllowedOrigins,
CORS: cfg.CORS, Server: cfg.Server, Auth: cfg.Auth, RateLimit: resolved.RateLimit,
AdminRoutes: map[string]http.Handler{
"/accounts": handlers.AccountsRouter(store),