Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bigsky: show something helpful when you hit home route #793

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions bgs/bgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ func (bgs *BGS) StartWithListener(listen net.Listener) error {
e.GET("/xrpc/com.atproto.sync.notifyOfUpdate", bgs.HandleComAtprotoSyncNotifyOfUpdate)
e.GET("/xrpc/_health", bgs.HandleHealthCheck)
e.GET("/_health", bgs.HandleHealthCheck)
e.GET("/", bgs.HandleHomeMessage)

admin := e.Group("/admin", bgs.checkAdminAuth)

Expand Down Expand Up @@ -420,6 +421,23 @@ func (bgs *BGS) HandleHealthCheck(c echo.Context) error {
}
}

var homeMessage string = `
d8888b. d888888b d888b .d8888. db dD db db
88 '8D '88' 88' Y8b 88' YP 88 ,8P' '8b d8'
88oooY' 88 88 '8bo. 88,8P '8bd8'
88~~~b. 88 88 ooo 'Y8b. 88'8b 88
88 8D .88. 88. ~8~ db 8D 88 '88. 88
Y8888P' Y888888P Y888P '8888Y' YP YD YP

This is an atproto [https://atproto.com] relay instance, running the 'bigsky' codebase [https://github.com/bluesky-social/indigo]

The firehose WebSocket path is at: /xrpc/com.atproto.sync.subscribeRepos
`

func (bgs *BGS) HandleHomeMessage(c echo.Context) error {
return c.String(http.StatusOK, homeMessage)
}

type AuthToken struct {
gorm.Model
Token string `gorm:"index"`
Expand Down
Loading