12 Commits

Author SHA1 Message Date
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
8665374a66 fix authorized_keys don't work on npub string & make private_keys accept npub string
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-16 18:34:07 +07:00
Yonle
e5851cdcf1 another bugfix for auth.js with non-working noscraper mode
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-10 17:25:40 +07:00
Yonle
60c1674fd6 fix auth.js didn't work with noscraper
Signed-off-by: Yonle <yonle@lecturify.net>
2024-05-10 17:23:23 +07:00
Yonle
a3ae67a2c4 bouncer: improve NIP-42 compatibilities
Signed-off-by: Yonle <yonle@lecturify.net>
2024-04-28 21:20:25 +07:00
Yonle
dfdc5fbcc4 bouncer: if nobot is being set, don't perform request for bot/scraper/crawler/similiar.
Signed-off-by: Yonle <yonle@lecturify.net>
2024-03-27 23:15:16 +07:00
Yonle
d589c034e2 code: apply use strict in js codes
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-22 17:08:09 +07:00
Yonle
21c72aa994 cli: fix error due to non-updated auth.js
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-19 19:38:31 +07:00
Yonle
a9188ae160 auth: fix bug on using event validation
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-18 12:56:00 +07:00
Yonle
7fae06bc8c code: renaming & reworking as per nostr-tools
Signed-off-by: Yonle <yonle@lecturify.net>
2024-02-17 19:35:33 +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
dd1da10b8a introduce nip42 and public/personal usage
Signed-off-by: Yonle <yonle@lecturify.net>
2023-11-16 21:53:58 +07:00