mirror of
https://github.com/aljazceru/haven.git
synced 2025-12-18 06:14:20 +01:00
set relay service urls
This commit is contained in:
3
init.go
3
init.go
@@ -65,6 +65,7 @@ func initRelays() {
|
||||
privateRelay.Info.Icon = config.PrivateRelayIcon
|
||||
privateRelay.Info.Version = config.RelayVersion
|
||||
privateRelay.Info.Software = config.RelaySoftware
|
||||
privateRelay.ServiceURL = "https://" + config.RelayURL + "/private"
|
||||
|
||||
chatRelay.Info.Name = config.ChatRelayName
|
||||
chatRelay.Info.PubKey = nPubToPubkey(config.ChatRelayNpub)
|
||||
@@ -72,6 +73,7 @@ func initRelays() {
|
||||
chatRelay.Info.Icon = config.ChatRelayIcon
|
||||
chatRelay.Info.Version = config.RelayVersion
|
||||
chatRelay.Info.Software = config.RelaySoftware
|
||||
privateRelay.ServiceURL = "https://" + config.RelayURL + "/chat"
|
||||
|
||||
outboxRelay.Info.Name = config.OutboxRelayName
|
||||
outboxRelay.Info.PubKey = nPubToPubkey(config.OutboxRelayNpub)
|
||||
@@ -86,4 +88,5 @@ func initRelays() {
|
||||
inboxRelay.Info.Icon = config.InboxRelayIcon
|
||||
inboxRelay.Info.Version = config.RelayVersion
|
||||
inboxRelay.Info.Software = config.RelaySoftware
|
||||
inboxRelay.ServiceURL = "https://" + config.RelayURL + "/inbox"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user