mirror of
https://github.com/github-tijlxyz/khatru-pyramid.git
synced 2025-06-06 18:31:02 +00:00
support icon url.
This commit is contained in:
parent
cde7d2f6d1
commit
952d5f9f06
2
main.go
2
main.go
@ -20,6 +20,7 @@ type Settings struct {
|
|||||||
RelayPubkey string `envconfig:"RELAY_PUBKEY" required:"true"`
|
RelayPubkey string `envconfig:"RELAY_PUBKEY" required:"true"`
|
||||||
RelayDescription string `envconfig:"RELAY_DESCRIPTION"`
|
RelayDescription string `envconfig:"RELAY_DESCRIPTION"`
|
||||||
RelayContact string `envconfig:"RELAY_CONTACT"`
|
RelayContact string `envconfig:"RELAY_CONTACT"`
|
||||||
|
RelayIcon string `envconfig:"RELAY_ICON"`
|
||||||
DatabasePath string `envconfig:"DATABASE_PATH" default:"./db"`
|
DatabasePath string `envconfig:"DATABASE_PATH" default:"./db"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,6 +52,7 @@ func main() {
|
|||||||
relay.PubKey = s.RelayPubkey
|
relay.PubKey = s.RelayPubkey
|
||||||
relay.Description = s.RelayDescription
|
relay.Description = s.RelayDescription
|
||||||
relay.Contact = s.RelayContact
|
relay.Contact = s.RelayContact
|
||||||
|
relay.IconURL = s.RelayIcon
|
||||||
|
|
||||||
relay.StoreEvent = append(relay.StoreEvent, db.SaveEvent)
|
relay.StoreEvent = append(relay.StoreEvent, db.SaveEvent)
|
||||||
relay.QueryEvents = append(relay.QueryEvents, db.QueryEvents)
|
relay.QueryEvents = append(relay.QueryEvents, db.QueryEvents)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user