feat: added [cache_relays] feature

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle
2023-12-19 22:56:48 +07:00
parent 5ae56bd8b4
commit 592af79f9c
2 changed files with 74 additions and 16 deletions

View File

@@ -80,6 +80,17 @@ module.exports = {
"version": require("./package.json").version
},
// Cache relays
// Used for caching received events from <relays> to reduce bandwidth waste.
// Keeping this empty will disable caching function.
//
// To make this working properly, Please enable <pause_on_limit>.
cache_relays: [
// "ws://localhost:8001",
// "ws://localhost:8002",
// ...and so on
],
// Nostr relays to bounce [Required]
relays: [
"wss://example1.com",