mirror of
https://github.com/aljazceru/haven.git
synced 2025-12-19 14:44:20 +01:00
set outbox service url
This commit is contained in:
1
init.go
1
init.go
@@ -200,6 +200,7 @@ func initRelays() {
|
|||||||
outboxRelay.Info.Icon = config.OutboxRelayIcon
|
outboxRelay.Info.Icon = config.OutboxRelayIcon
|
||||||
outboxRelay.Info.Version = config.RelayVersion
|
outboxRelay.Info.Version = config.RelayVersion
|
||||||
outboxRelay.Info.Software = config.RelaySoftware
|
outboxRelay.Info.Software = config.RelaySoftware
|
||||||
|
outboxRelay.ServiceURL = "https://" + config.RelayURL
|
||||||
|
|
||||||
if !outboxRelayLimits.AllowEmptyFilters {
|
if !outboxRelayLimits.AllowEmptyFilters {
|
||||||
outboxRelay.RejectFilter = append(outboxRelay.RejectFilter, policies.NoEmptyFilters)
|
outboxRelay.RejectFilter = append(outboxRelay.RejectFilter, policies.NoEmptyFilters)
|
||||||
|
|||||||
2
main.go
2
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.Store = blossom.EventStoreBlobIndexWrapper{Store: outboxDB, ServiceURL: bl.ServiceURL}
|
||||||
bl.StoreBlob = append(bl.StoreBlob, func(ctx context.Context, sha256 string, body []byte) error {
|
bl.StoreBlob = append(bl.StoreBlob, func(ctx context.Context, sha256 string, body []byte) error {
|
||||||
// if khatru.GetAuthed(ctx) != nPubToPubkey(config.OwnerNpub) {
|
// if khatru.GetAuthed(ctx) != nPubToPubkey(config.OwnerNpub) {
|
||||||
|
|||||||
Reference in New Issue
Block a user