2023-10-30 03:14:50 +07:00
|
|
|
|
|
|
|
// Bostr config
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
// Server listener [Required]
|
|
|
|
address: "0.0.0.0",
|
|
|
|
port: "8080",
|
|
|
|
|
2023-10-31 14:00:16 +07:00
|
|
|
// Bouncing mode
|
2023-10-31 15:55:46 +07:00
|
|
|
// 1 -> Fast. Bouncer connects to <relays> at startup.
|
2023-11-06 13:24:15 +07:00
|
|
|
// 2 -> Accurate. Every clients has their own sessions (recommended).
|
|
|
|
mode: 2,
|
2023-10-31 14:00:16 +07:00
|
|
|
|
2023-10-31 17:24:59 +07:00
|
|
|
// Clusters.
|
2023-11-12 16:54:39 +07:00
|
|
|
clusters: 4,
|
2023-10-31 14:16:43 +07:00
|
|
|
|
2023-10-31 17:24:59 +07:00
|
|
|
// Whenever store temporary data in memory (RAM) or in a disk
|
2023-11-01 15:00:25 +07:00
|
|
|
// Options: disk, memory
|
|
|
|
tmp_store: "memory",
|
2023-10-31 17:24:59 +07:00
|
|
|
|
2023-11-01 19:54:03 +07:00
|
|
|
// Log about bouncer connection with relays?
|
|
|
|
log_about_relays: false,
|
|
|
|
|
2023-10-30 03:14:50 +07:00
|
|
|
// Server information.
|
|
|
|
// Only for when nostr client requesting server information.
|
|
|
|
server_meta: {
|
|
|
|
"contact": "unset",
|
|
|
|
"description": "Nostr Bouncer Server",
|
|
|
|
"name": "Bostr",
|
|
|
|
"software": "git+https://github.com/Yonle/bostr",
|
2023-11-12 16:54:39 +07:00
|
|
|
|
|
|
|
// Some nostr client may read the following for compatibility check.
|
|
|
|
// You may change the supported_nips when needed.
|
|
|
|
"supported_nips": [1,9,11,12,15,16,20,22,26,28,33,40],
|
2023-10-30 03:14:50 +07:00
|
|
|
"version": "1.0.0"
|
|
|
|
},
|
|
|
|
|
|
|
|
// Nostr relays to bounce [Required]
|
|
|
|
relays: [
|
|
|
|
"wss://example1.com",
|
|
|
|
"wss://example2.com",
|
|
|
|
// "wss://example3.com",
|
|
|
|
// ...and so on
|
|
|
|
]
|
|
|
|
}
|