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
Yonle
328cdc1975
Merge pull request #1 from mroxso/dockerize
...
Dockerize
2023-11-06 13:12:17 +07:00
Yonle
5df8ddda91
b2: fix crash when client disconnected
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-06 13:03:46 +07:00
mroxso
6d831f7ba5
add github docker build and push workflow
2023-11-05 20:51:38 +01:00
mroxso
685e80e639
fix dockerfile and use external config.js
2023-11-05 20:37:54 +01:00
mroxso
52d92de8fa
initial dockerize (wip)
2023-11-05 11:12:56 +01:00
Yonle
0bb168e777
oops
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-03 17:22:43 +07:00
Yonle
4cdeec40b6
fix the improvement for pendingEOSE in mode 2
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-03 17:19:37 +07:00
Yonle
9a4ea6ab20
improve pendingEOSE (commitdesc. avail.)
...
Normally, If it receives the first EOSE from one of existing relays, It
will forward the EOSE to client and "that's it", it ignores the further
EOSE messages. However, as the result, This confuses some nostr client
as it expects EOSE as "oh, that's the only events that i got", and there
we go something broke apart.
This commit, should fix at some cases, Especially for the one with NIP-50 supported relays (searching, etc)
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-03 16:59:23 +07:00
Yonle
1f7a86fa2f
package.json: Add start command and set node requirement
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-02 22:23:20 +07:00
Yonle
4699ba1b48
fix major bug
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-02 22:06:25 +07:00
Yonle
4ca71948c3
README: How this software works?
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-02 14:30:33 +07:00
Yonle
bd19d934a5
Implement pendingEOSE and dich the instant EOSE
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-01 22:20:21 +07:00
Yonle
ea06487f94
add log_about_relays into config.js
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-01 19:54:03 +07:00
Yonle
292354813c
bouncer2: no need to send CLOSE to relays after client disconnected.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-01 15:17:39 +07:00
Yonle
2f5075b4d7
Change default config a bit.
2023-11-01 15:00:25 +07:00
Yonle
297516d595
run in cluster? tell eberiwan
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 20:09:03 +07:00
Yonle
0e7f9f0706
run in cluster? tell eberiwan
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 20:08:28 +07:00
Yonle
16b22e863a
it's rather an clients than users.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 20:03:19 +07:00
Yonle
a9f6f79f49
There you go, The currently connected user numbers
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 20:01:22 +07:00