add blossom url

This commit is contained in:
Barry Deen
2024-10-29 17:52:32 -04:00
parent 1ea31a28ee
commit e718d7fa4b
2 changed files with 3 additions and 3 deletions

View File

@@ -287,9 +287,7 @@ func makeNewRelay(relayType string, w http.ResponseWriter, r *http.Request) *kha
}
})
addr := fmt.Sprintf("%s:%d", config.RelayBindAddress, config.RelayPort)
bl := blossom.New(outboxRelay, addr)
bl := blossom.New(outboxRelay, config.BlossomURL)
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) {