mirror of
https://github.com/layer-systems/relay.git
synced 2026-06-04 09:31:15 +02:00
add software info, version, and supported NIPs to relay instance
This commit is contained in:
4
main.go
4
main.go
@@ -62,6 +62,10 @@ func main() {
|
|||||||
relay.Info.Description = getEnv("RELAY_DESCRIPTION", "this is a public relay")
|
relay.Info.Description = getEnv("RELAY_DESCRIPTION", "this is a public relay")
|
||||||
relay.Info.Icon = getEnv("RELAY_ICON", "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fliquipedia.net%2Fcommons%2Fimages%2F3%2F35%2FSCProbe.jpg&f=1&nofb=1&ipt=0cbbfef25bce41da63d910e86c3c343e6c3b9d63194ca9755351bb7c2efa3359&ipo=images")
|
relay.Info.Icon = getEnv("RELAY_ICON", "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fliquipedia.net%2Fcommons%2Fimages%2F3%2F35%2FSCProbe.jpg&f=1&nofb=1&ipt=0cbbfef25bce41da63d910e86c3c343e6c3b9d63194ca9755351bb7c2efa3359&ipo=images")
|
||||||
|
|
||||||
|
relay.Info.Software = "https://github.com/layer-systems/relay"
|
||||||
|
relay.Info.Version = "0.1.0"
|
||||||
|
relay.Info.SupportedNIPs = []any{1, 11, 17, 40, 42, 70, 86}
|
||||||
|
|
||||||
queryLimit, _ := strconv.Atoi(getEnv("QUERY_LIMIT", "100"))
|
queryLimit, _ := strconv.Atoi(getEnv("QUERY_LIMIT", "100"))
|
||||||
db := postgresql.PostgresBackend{DatabaseURL: getEnv("DATABASE_URL", "postgresql://postgres:postgres@db:5432/khatru-relay?sslmode=disable"), QueryLimit: queryLimit}
|
db := postgresql.PostgresBackend{DatabaseURL: getEnv("DATABASE_URL", "postgresql://postgres:postgres@db:5432/khatru-relay?sslmode=disable"), QueryLimit: queryLimit}
|
||||||
if err := db.Init(); err != nil {
|
if err := db.Init(); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user