mirror of
https://github.com/Yonle/bostr.git
synced 2025-11-20 02:46:24 +01:00
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:
@@ -13,8 +13,8 @@ function showHelp() {
|
|||||||
"Usage: bostr [command] (argv)\n" +
|
"Usage: bostr [command] (argv)\n" +
|
||||||
"Available command:\n" +
|
"Available command:\n" +
|
||||||
" makeconf [conffile] - Make config file\n" +
|
" makeconf [conffile] - Make config file\n" +
|
||||||
|
" checkconf [conffile] - Check config file\n" +
|
||||||
" start [conffile] - Run bostr with specified config\n" +
|
" start [conffile] - Run bostr with specified config\n" +
|
||||||
" check [conffile] - Check config file\n" +
|
|
||||||
" hexconverter [nip19] - Convert NIP-19 string to hex\n" +
|
" hexconverter [nip19] - Convert NIP-19 string to hex\n" +
|
||||||
" help - Show this help text\n\n" +
|
" help - Show this help text\n\n" +
|
||||||
"Software is licensed under BSD-3-Clause\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(`Edit ${argv[1]} with your editor and start with the following command:`);
|
||||||
console.log(` $ bostr start ${argv[1]}\n`);
|
console.log(` $ bostr start ${argv[1]}\n`);
|
||||||
break;
|
break;
|
||||||
case "check": {
|
case "checkconf": {
|
||||||
if (!argv[1]) return console.log("Usage: bostr check [conffile]");
|
if (!argv[1]) return console.log("Usage: bostr checkconf [conffile]");
|
||||||
if (!fs.existsSync(argv[1])) {
|
if (!fs.existsSync(argv[1])) {
|
||||||
console.error("Config not exists.");
|
console.error("Config not exists.");
|
||||||
return process.exit(254);
|
return process.exit(254);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bostr",
|
"name": "bostr",
|
||||||
"version": "2.0.7",
|
"version": "2.0.8",
|
||||||
"description": "Nostr relay bouncer",
|
"description": "Nostr relay bouncer",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/Yonle/bostr#readme",
|
"homepage": "https://github.com/Yonle/bostr#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nostr-tools": "^2.2.1",
|
"nostr-tools": "^2.3.1",
|
||||||
"ws": "^8.16.0"
|
"ws": "^8.16.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
Reference in New Issue
Block a user