Skip to content

Commit

Permalink
bigsky: show something helpful when you hit home route (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold authored Nov 8, 2024
2 parents 12d29e9 + 83930c9 commit 1ae8ae9
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit 1ae8ae9

Please sign in to comment.