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
|
|
|
|
// 1 -> Normal, But inaccurate
|
|
|
|
// 2 -> Accurate, But every clients will connects to numbers of <relays>
|
|
|
|
mode: 1,
|
|
|
|
|
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",
|
|
|
|
"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
|
|
|
|
]
|
|
|
|
}
|