mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-17 13:22:49 +01:00
Release: 2.0.2
Fast connect and disconnecting is brutal sometime. What's new? =========== - An whitelist to only allow some event authors to be published with this bouncer. - Orphan sockets feature to make stuff fast & not so easy to abuse, therefore reducing the amount of reconnects. New Contributors ================ - Takuro Fukuda https://github.com/ftkro Full Changelog: https://github.com/Yonle/bostr/compare/2.0.1...2.0.2 Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
80d87626fd
commit
403c51c9ee
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
||||
Copyright 2023 Yonle <yonle@lecturify.net>
|
||||
Copyright 2024 Yonle <yonle@lecturify.net>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
|
3
http.js
3
http.js
@ -1,3 +1,4 @@
|
||||
const { version } = require("./package.json");
|
||||
const WebSocket = require("ws");
|
||||
const config = require("./config");
|
||||
const http = require("http");
|
||||
@ -32,7 +33,7 @@ server.on('request', (req, res) => {
|
||||
res.write(`\nI have ${wss.clients.size} clients currently connected to this bouncer${(process.env.CLUSTERS || config.clusters) > 1 ? " on this cluster" : ""}.\n`);
|
||||
if (config?.authorized_keys?.length) res.write("\nNOTE: This relay has configured for personal use only. Only authorized users could use this bostr relay.\n");
|
||||
res.write(`\nConnect to this bouncer with nostr client: ws://${req.headers.host}${req.url} or wss://${req.headers.host}${req.url}\n\n---\n`);
|
||||
res.end("Powered by Bostr - Open source nostr Bouncer\nhttps://github.com/Yonle/bostr");
|
||||
res.end(`Powered by Bostr (${version}) - Open source Nostr bouncer\nhttps://github.com/Yonle/bostr`);
|
||||
} else {
|
||||
res.writeHead(404).end("What are you looking for?");
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bostr",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.2",
|
||||
"description": "Nostr relay bouncer",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user