diff --git a/init.go b/init.go index b6f1d6d..961f3a7 100644 --- a/init.go +++ b/init.go @@ -200,6 +200,7 @@ func initRelays() { outboxRelay.Info.Icon = config.OutboxRelayIcon outboxRelay.Info.Version = config.RelayVersion outboxRelay.Info.Software = config.RelaySoftware + outboxRelay.ServiceURL = "https://" + config.RelayURL if !outboxRelayLimits.AllowEmptyFilters { outboxRelay.RejectFilter = append(outboxRelay.RejectFilter, policies.NoEmptyFilters) diff --git a/main.go b/main.go index 98cd809..1d6a2bc 100644 --- a/main.go +++ b/main.go @@ -287,7 +287,7 @@ func makeNewRelay(relayType string, w http.ResponseWriter, r *http.Request) *kha } }) - bl := blossom.New(outboxRelay, config.BlossomURL) + bl := blossom.New(outboxRelay, outboxRelay.ServiceURL) bl.Store = blossom.EventStoreBlobIndexWrapper{Store: outboxDB, ServiceURL: bl.ServiceURL} bl.StoreBlob = append(bl.StoreBlob, func(ctx context.Context, sha256 string, body []byte) error { // if khatru.GetAuthed(ctx) != nPubToPubkey(config.OwnerNpub) {