RELEASE: 2.0.8

Small and useful improvements and a little bit touch on moderations.

- Improvements on receiving new events in save mode (a.k.a. pause_on_limit)

Firewall / moderation things:
- A way to block an event owner's pubkey to have the event published
  into your bouncer. Useful to stop annoying actors to abuse your
  bouncer or in moderated nostr relay.

- Ability to block an IP address to connect into the bouncer's websocket.
  Useful to stop scrappers to constantly dig in your bouncer

I am not going to focus much on moderation however. So please bear in mind
that if you ask too much to add moderation stuffs into bostr, It will be
an different project. Because that's not what the goal of this project
for.

As of now i am still focusing to improve the save mode (pause_on_limit).

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle
2024-03-01 12:04:05 +07:00
parent 67f16ff247
commit ce0533cc6e
2 changed files with 5 additions and 5 deletions

View File

@@ -13,8 +13,8 @@ function showHelp() {
"Usage: bostr [command] (argv)\n" +
"Available command:\n" +
" makeconf [conffile] - Make config file\n" +
" checkconf [conffile] - Check config file\n" +
" start [conffile] - Run bostr with specified config\n" +
" check [conffile] - Check config file\n" +
" hexconverter [nip19] - Convert NIP-19 string to hex\n" +
" help - Show this help text\n\n" +
"Software is licensed under BSD-3-Clause\n" +
@@ -39,8 +39,8 @@ switch (argv[0]) {
console.log(`Edit ${argv[1]} with your editor and start with the following command:`);
console.log(` $ bostr start ${argv[1]}\n`);
break;
case "check": {
if (!argv[1]) return console.log("Usage: bostr check [conffile]");
case "checkconf": {
if (!argv[1]) return console.log("Usage: bostr checkconf [conffile]");
if (!fs.existsSync(argv[1])) {
console.error("Config not exists.");
return process.exit(254);

View File

@@ -1,6 +1,6 @@
{
"name": "bostr",
"version": "2.0.7",
"version": "2.0.8",
"description": "Nostr relay bouncer",
"main": "index.js",
"scripts": {
@@ -27,7 +27,7 @@
},
"homepage": "https://github.com/Yonle/bostr#readme",
"dependencies": {
"nostr-tools": "^2.2.1",
"nostr-tools": "^2.3.1",
"ws": "^8.16.0"
},
"engines": {