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
Yonle
181840d045
redone log for websocket users
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 19:53:09 +07:00
Yonle
1021040fc1
make le log cleaner
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 19:50:19 +07:00
Yonle
4d728ba8f9
Just a small log fix
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 19:49:15 +07:00
Yonle
973dbf4cf4
add tmp_store option in config.js
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 17:28:44 +07:00
Yonle
0d4804ad9a
.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 15:55:46 +07:00
Yonle
b06f29da5b
fix bug for mode 2 and remove unused code
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 15:52:07 +07:00
Yonle
2611654775
bouncer1: fixbug
2023-10-31 15:36:01 +07:00
Yonle
4fa2811eff
bouncer1: fixbug
2023-10-31 15:35:26 +07:00
Yonle
1cfe76269c
Fix bug for resub function
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 15:22:39 +07:00
Yonle
8370bf2cd7
fix [relays: Re-sub after reconnect]
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 15:15:00 +07:00
Yonle
1776c4c888
relays: Re-sub after reconnect
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 15:14:02 +07:00
Yonle
29bab0bfc9
fix comment on code.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 14:52:45 +07:00
Yonle
1db4951395
allow for setting number of clusters via config.js
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 14:16:43 +07:00
Yonle
6d5e690269
Holy shit http.js is left alone :((((
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 14:02:14 +07:00
Yonle
94af76f8dc
Introduce bouncing mode 2.
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-31 14:00:16 +07:00
Yonle
b29049dca2
Rework for the ws.id
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-30 18:15:17 +07:00
Yonle
71f7cc874c
Remove forwarding NOTICE to clients
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-30 15:43:49 +07:00
Yonle
c54ebcb500
fix CLOSE command
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-30 15:24:04 +07:00
Yonle
c818a43732
oop
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-30 15:21:24 +07:00
Yonle
db838be289
Document environment variables and allow in-memory mode for temp datas
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-30 15:10:24 +07:00
Yonle
a05c81c936
typo :/
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-30 03:15:58 +07:00
Yonle
4c6c5c6707
Initial commit
...
Signed-off-by: Yonle <yonle@lecturify.net>
2023-10-30 03:14:50 +07:00