91 Commits

Author SHA1 Message Date
Yonle
540963177a fix verbose logging bug.
Signed-off-by: Yonle <yonle@lecturify.net>
2.0.0
2023-11-22 16:57:14 +07:00
Yonle
6758fc2070 defaultconf comment: give a tips.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-22 16:51:46 +07:00
Yonle
ac14c698dc introduce max EOSE score in config
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-22 16:43:19 +07:00
Yonle
e9fa7e19ee introduce EOSE Timeout
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-22 00:46:08 +07:00
Yonle
a1b68cc77e bouncer: allow the same subID to be REQ again
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 22:50:13 +07:00
Yonle
917de23b21 defaultconf: uh, small comment fix
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 20:49:14 +07:00
Yonle
64d06f2b2a defaultconf: add pubkey field for nip11
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 19:19:22 +07:00
Yonle
e3c2bf34d2 code cleaning, add more config options
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 19:14:40 +07:00
Yonle
2d73575375 http.js: probably need to tell the current path.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 15:15:11 +07:00
Yonle
e2d6960f9e package.json: change desc
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 13:58:31 +07:00
Yonle
b518022b21 major fix: fix EOSE handling
Array.from(relays) is actually just derivering { relays } from
config.js. Fix by changing "relays" with "socks" as that's what i am
expecting that limit from.

Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-21 13:08:52 +07:00
Yonle
b8c720aa8a enable nip42 function for public bouncer.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-20 22:45:35 +07:00
Yonle
8a189bcd2e defaultconf: Make it more understandable.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-20 21:10:57 +07:00
Yonle
a9ddba1da3
Merge pull request #2 from HolgerHatGarKeineNode/patch-2
Missing commas added to config.js.example
2023-11-19 11:22:46 +07:00
Yonle
b9b8f5575f defaultconf: small typo
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-19 10:51:13 +07:00
Yonle
8b158507fb handle since & until and fixbug
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-19 08:46:35 +07:00
Yonle
f6d623004d do not send events after reach to limit till all relays EOSE-ed
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-19 08:37:43 +07:00
Yonle
4c20e05b5f defaultconf: Change some comments
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-19 08:02:40 +07:00
HolgerHatGarKeineNode
01a6f5157e
Missing commas added to config.js.example
syntax errors fixed
2023-11-18 22:23:18 +00:00
Yonle
7e00693b73 bouncer.js: small mistake fix
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-18 17:06:03 +07:00
Yonle
6aa8125f8c defaultconf: Set default clusters as auto.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-18 16:59:44 +07:00
Yonle
0f76628728 remove mode 1, and sqlite3 no longer needed
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-18 16:53:48 +07:00
Yonle
ad08c005ae The unwelcoming way to respond unauthorized users.
Signed-off-by: Yonle <yonle@lecturify.net>
1.0.0
2023-11-17 14:40:11 +07:00
Yonle
e08d64782e b2: only start connect to relays once authenticated
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-16 22:16:31 +07:00
Yonle
3be8e325e1 some helper.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-16 22:07:07 +07:00
Yonle
74c2e4c21f config default: need to tell to provide hex pubkey
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-16 21:57:35 +07:00
Yonle
dd1da10b8a introduce nip42 and public/personal usage
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-16 21:53:58 +07:00
Yonle
5f13300734 b2: don't chill down.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-15 21:40:04 +07:00
Yonle
d00c6b2d00 Change default supported_nips
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-15 14:18:57 +07:00
Yonle
e651221256 replace some code & pause client socket before bouncer connect to relays
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-15 13:18:43 +07:00
Yonle
7d6e2018e3 http: give content-type to client
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-13 18:35:50 +07:00
Yonle
22c42a3857 Make NIP-11 work by adding Access-Control-Allow-Origin
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-13 18:32:29 +07:00
Yonle
21bcb680d6 improve README
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-13 09:16:03 +07:00
Yonle
6b6547deab add small comment
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 21:56:23 +07:00
Yonle
392087a397 README: Change git URL in Docker Quick Run
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 20:27:50 +07:00
Yonle
5595507696 Internal NIP-50 support, and fix memory leak in mode 2
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 20:07:45 +07:00
Yonle
33dbdefd9f change the default supported_nips once again
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 19:41:36 +07:00
Yonle
8ad8e07536 re-transmit client's EVENT data once (re)connected to relays
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 17:52:02 +07:00
Yonle
30fcabe658 dependencies bump
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 16:55:09 +07:00
Yonle
229ae677b2 Override supported_nips in default, and change default clusters number
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 16:54:39 +07:00
Yonle
b305881fb7 send EOSE to client once limit was under than 1
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-12 14:25:43 +07:00
Yonle
19232a426a README: update
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-07 23:20:36 +07:00
Yonle
b7a513be56 connect to relays with user-agent
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-07 23:18:16 +07:00
Yonle
db94aa162a Fix EOSE handling
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-07 20:48:56 +07:00
Yonle
94676ad472 b2: Do the classic sess check.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 20:46:38 +07:00
Yonle
d9b4b3265f handle remainingEvents correctly
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 20:23:35 +07:00
Yonle
b6234e9e82 README: update node requirement
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 20:15:59 +07:00
Yonle
ceed45ce1c Handle REQ limit on client filter
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 20:10:48 +07:00
Yonle
58e51a027f mode 2 as default, edit README.md to edit config first
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 13:24:15 +07:00
Yonle
ae7859a49d docker: compose.yml: remove unnecessary comments
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 13:13:49 +07:00