bostr/config.js.example

40 lines
861 B
Plaintext
Raw Normal View History

// Bostr config
module.exports = {
// Server listener [Required]
address: "0.0.0.0",
port: "8080",
// Bouncing mode
// 1 -> Fast. Bouncer connects to <relays> at startup.
2023-11-01 15:00:25 +07:00
// 2 -> Accurate. Every clients has their own sessions.
mode: 1,
// Clusters.
clusters: 1,
// 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",
// 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",
"supported_nips": [1],
"version": "1.0.0"
},
// Nostr relays to bounce [Required]
relays: [
"wss://example1.com",
"wss://example2.com",
// "wss://example3.com",
// ...and so on
]
}