+1
-1
cmd/rainbow/main.go
+1
-1
cmd/rainbow/main.go
···
186
186
CollectionDirHost: collectionDirHost,
187
187
CursorFile: cctx.String("cursor-file"),
188
188
PebbleOptions: &ppopts,
189
-
UserAgent: fmt.Sprintf("rainbow/%s", versioninfo.Short()),
189
+
UserAgent: fmt.Sprintf("rainbow/%s (atproto-relay)", versioninfo.Short()),
190
190
}
191
191
spl, err = splitter.NewSplitter(conf, nextCrawlers)
192
192
} else {
+7
splitter/splitter.go
+7
splitter/splitter.go
···
195
195
AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept, echo.HeaderAuthorization},
196
196
}))
197
197
198
+
e.Use(func(next echo.HandlerFunc) echo.HandlerFunc {
199
+
return func(c echo.Context) error {
200
+
c.Response().Header().Set(echo.HeaderServer, s.conf.UserAgent)
201
+
return next(c)
202
+
}
203
+
})
204
+
198
205
/*
199
206
if !s.ssl {
200
207
e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{