373 Commits

Author SHA1 Message Date
Yonle
2a0c641133 BUMP
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.10
2024-08-01 22:59:33 +07:00
Yonle
c80470845d bump
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.9-1
2024-08-01 22:55:47 +07:00
Yonle
49181f4ec9 auth.js: fix auth that let's everyone in
Even with authorized_keys being set, If noscraper is enabled in config,
Then an unexpected behavior will occurs due to bad code on auth.js.

See the following diff for details.

Signed-off-by: Yonle <yonle@lecturify.net>
2024-08-01 22:54:23 +07:00
Yonle
8b131e239b frick
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.9
2024-08-01 16:24:02 +07:00
Yonle
b8f9717648 bump
Signed-off-by: Yonle <yonle@lecturify.net>
2024-08-01 16:21:02 +07:00
Yonle
acad1f68b0 i forgot
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.8
2024-08-01 16:19:56 +07:00
Yonle
7d46a70099 RELEASE 3.0.8
Signed-off-by: Yonle <yonle@lecturify.net>
2024-07-29 19:34:24 +07:00
Yonle
1fe26710d2 exclusively disable compression ONLY for apple
Preparing before disaster happens.
See https://github.com/Yonle/bostr2/issues/3

Signed-off-by: Yonle <yonle@lecturify.net>
2024-07-29 19:32:37 +07:00
Yonle
9c14cc97a6 package.json: bump revision to 1 for 3.0.7
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.7-1
2024-06-09 11:02:59 +07:00
Yonle
c6935870cb worker_bouncer: fix error handling code
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-09 09:35:41 +07:00
Yonle
0959a47cb5 package.json: bump to 3.0.7
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.7
2024-06-08 20:30:20 +07:00
Yonle
d8d364e274 code: cleanup & fix NIP-42 for upstream
- Fix NIP-42 authentication in bouncer side
- Split event handler codes for receiver

Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-08 17:07:04 +07:00
Yonle
4af2f4095b worker_bouncer: small fix but does not really hurt that much
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-08 10:09:58 +07:00
Yonle
455b5673a6 package.json: bump version to 3.0.6
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.6
2024-06-08 00:14:56 +07:00
Yonle
ec9baec453 worker_bouncer: try replace newConn function code as class inherited from WebSocket
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-07 23:34:41 +07:00
Yonle
a9aa39567b defaultconf: set max_known_events default as 1000
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-07 18:21:25 +07:00
Yonle
935902ae14 package.json: bump revision to 2 for version 3.0.4
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.5 3.0.4-2
2024-06-07 12:14:29 +07:00
Yonle
5d0eb6fa0c worker_bouncer: for some reason, terminate() is good for memory.
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-07 12:13:38 +07:00
Yonle
b0b98b50dc package.json: bump revision to 1 for 3.0.4
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.4-1
2024-06-05 20:09:40 +07:00
Yonle
3d1f325e48 worker: worker.ref(). don't let worker die.
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-05 20:09:10 +07:00
Yonle
597f9a8a75 package.json: bump version to 3.0.4
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-05 19:58:05 +07:00
Yonle
30fd601263 code: use .close() instead of .terminate() & change the name for node module load
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-05 19:57:17 +07:00
Yonle
08eb54b106 README: fix on links for [Installation Methods] section
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.3
2024-06-02 12:27:59 +07:00
Yonle
738f8811f0 package.json: bump version 3.0.3
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-02 12:23:22 +07:00
Yonle
e37e76909a README: add instructions to run with bun runtime
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-02 12:23:06 +07:00
Yonle
701fbe60ca index.js (keeper): Detect Bun runtime environment
Signed-off-by: Yonle <yonle@lecturify.net>
2024-06-02 11:52:27 +07:00
Yonle
4775641fbe package.json: bump to 5th revision
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.2-5
2024-05-28 23:13:19 +07:00
Yonle
a187fed74f worker: newsess: rehandle loadbalancer config handling
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-28 23:12:50 +07:00
Yonle
95f88d072e package.json: bump revision to 4th
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-28 22:50:06 +07:00
Yonle
533f3e6d00 worker_bouncer: use <array>.splice(<index>, 1) for removing instead of just delete
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-28 22:49:28 +07:00
Yonle
98469a4521 package.json: bump revision to 3 for 3.0.2
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.2-3
2024-05-24 20:19:28 +07:00
Yonle
d9d3b784d5 http page: handle x-forwarded-proto properly
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-24 13:35:38 +07:00
Yonle
014d4692cd bouncer connection to relays: tell ConnID in header
This commit will expose ConnID in User-Agent HTTP Header on connection to upstream
relays. The ConnID is only an random string that only the bostr admin
knows what IP it does belong. This random string is always changing and
will never give the same ID on every single connections, So please do
not take this to be a similiar thing like X-Real-IP.

The ConnID won't reveal client IP to upstream relay due to how the
bouncer technically works, But it will help on both parties to finding the
culprit.

Only the respective bostr owner / admin know what IP does this ConnIDs
belong.

- To report an suspected service abuse, Contact to the bostr admin.
  Make sure that you send atleast more than a single log of ConnID.
  Please remember that these ConnIDs is not always the same.
  So sending more log about ConnIDs will help bostr admin to figure out
  the culprit.

- For bostr admins, Finding out the culprit is easy.
  In your bostr log:

  1 --- xxx.xxx.xxx.xxx is now using session 171629xxxxxxx_1_0.503985444xxxxxxx
               ^                                             ^
               |                                             |
            Culprit                                        ConnID

Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-21 18:32:12 +07:00
Yonle
b99795f9d8 worker: do not reconnect to cache relays/loadbalancer bouncers if status code ix 4xx
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-21 16:32:07 +07:00
Yonle
6d50753390 package.json: bump revision 2 for 3.0.2
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.2-2
2024-05-20 13:29:03 +07:00
Yonle
845aa5b3cc worker: fix bug where subscription limit is not being handled properly
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-20 13:16:53 +07:00
Yonle
2582700e57 defaultconf comment: add some note for <max_conn_per_ip>
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.2-1
2024-05-20 06:37:08 +07:00
Yonle
83e4b384b9 README: Remove some words
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-20 06:36:45 +07:00
Yonle
d140da9812 package.json: bump 3.0.2 revision 1
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-20 06:19:44 +07:00
Yonle
14efdaf830 http & worker: handle max_client_subs properly
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 23:33:36 +07:00
Yonle
793bd71c66 http page: "mobile bandwidth usage" instead of "mobile data usage". this is minor
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 23:25:29 +07:00
Yonle
ee9c7de778 defaultconf comment: word grammar fix
Signed-off-by: Yonle <yonle@lecturify.net>
3.0.2
2024-05-19 23:20:43 +07:00
Yonle
1df2ad13db config: max_conn_per_ip for limiting maximum incomming connections per IP.
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 23:12:44 +07:00
Yonle
efc555e7a1 package.json: bump package version & set version as 3.0.2
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 23:00:16 +07:00
Yonle
2ea8f5bc98 code: add some code that does not have "use strict" being set
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 22:53:59 +07:00
Yonle
e55cf9025e http page: Add breakline.
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 22:44:09 +07:00
Yonle
9972bfdc01 http page: add welcome
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 22:37:02 +07:00
Yonle
43fbee2b36 README: update explanation
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 22:36:34 +07:00
Yonle
5af6d58e21 http page: tell about Administrator contact
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 22:03:24 +07:00
Yonle
f7cc855fe3 comm: User-Agent: Tell the contact address in User-Agent
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-19 22:01:13 +07:00