mirror of
https://github.com/github-tijlxyz/khatru-pyramid.git
synced 2025-06-05 16:52:06 +00:00
apply sane defaults (i.e. rate-limit connections like crazy).
This commit is contained in:
parent
3954e5a4ba
commit
a78ab550c2
2
go.mod
2
go.mod
@ -6,7 +6,7 @@ toolchain go1.21.6
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/fiatjaf/eventstore v0.4.2
|
github.com/fiatjaf/eventstore v0.4.2
|
||||||
github.com/fiatjaf/khatru v0.4.2
|
github.com/fiatjaf/khatru v0.5.0
|
||||||
github.com/kelseyhightower/envconfig v1.4.0
|
github.com/kelseyhightower/envconfig v1.4.0
|
||||||
github.com/nbd-wtf/go-nostr v0.30.0
|
github.com/nbd-wtf/go-nostr v0.30.0
|
||||||
github.com/nbd-wtf/nostr-sdk v0.1.0
|
github.com/nbd-wtf/nostr-sdk v0.1.0
|
||||||
|
2
main.go
2
main.go
@ -69,6 +69,8 @@ func main() {
|
|||||||
RestrictedWrites: true,
|
RestrictedWrites: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
policies.ApplySaneDefaults(relay)
|
||||||
|
|
||||||
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)
|
||||||
relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent)
|
relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user