Commit Graph

  • 5705647c6b fix(blossom): remove extra . when serving files without extension master Anthony Accioly 2025-05-12 23:53:01 +01:00
  • b2607e787f feat(docs): add redirection support details in Blossom usage guide Anthony Accioly 2025-05-12 21:42:59 +01:00
  • 011efe0dd2 feat(server): add functional options for BlossomServer configuration Anthony Accioly 2025-05-12 21:42:02 +01:00
  • 16eee5cffb feat(blossom): add redirect support for GET requests Anthony Accioly 2025-05-12 21:28:51 +01:00
  • c5076b297d handle files declared as .apk as .apk. fiatjaf 2025-06-03 18:29:34 -03:00
  • 1a5b498fb8 Update blossom.md (#42) Bitkarrot 2025-05-09 11:15:59 -07:00
  • b6da555807 blossom: return content-type in handleUpload() (#46) sudocarlos 2025-05-09 07:41:46 -04:00
  • 1ab44ab897 blossom: implement BUD-05 without optimizations (#45) sudocarlos 2025-05-08 09:29:26 -04:00
  • 3da898cec7 blossom: implement BUD-04 fiatjaf 2025-05-06 00:44:42 -03:00
  • cfbe484784 docs: show fox. fiatjaf 2025-04-28 15:45:07 -03:00
  • 583f712fe4 admin: normalize urls for nip86 checking. fiatjaf 2025-04-17 08:02:12 -03:00
  • 28b1061166 Reject deleted events Jon Staab 2025-04-16 14:44:53 -07:00
  • 25f19ce46e Store and serve delete events Jon Staab 2025-04-16 13:52:08 -07:00
  • 33545587b6 make it so ephemeral events respond with ok:false if no one is listening. fiatjaf 2025-04-14 09:24:34 -03:00
  • 214371f8bd refactor(adding): check kind range with proper function. Kay 2025-03-25 13:49:52 +00:00
  • fbb40f3b74 use .Find() instead of .GetFirst() everywhere. fiatjaf 2025-04-04 23:07:18 -03:00
  • d97a2f1cf2 initialScan() fiatjaf 2025-04-04 17:55:16 -03:00
  • c9a7d60543 remove event from expiration manager if it is deleted. fiatjaf 2025-04-03 23:11:47 -03:00
  • 2bb6d4d29a simplify WriteMessage, remove the defer since it's not needed. fiatjaf 2025-04-03 23:10:39 -03:00
  • 2292ce4a30 add missing return in repost protected clause. fiatjaf 2025-04-03 23:10:11 -03:00
  • 2ae219a34c add khatru.IsInternal() for dealing with internal calls specifically in QueryEvents() fiatjaf 2025-04-03 23:06:57 -03:00
  • 8c9394993b reject reposts that embed nip70 protected events. fiatjaf 2025-03-28 18:08:38 -03:00
  • 850497956c include checkid length check from @pippellia-btc fiatjaf 2025-03-24 15:56:50 -03:00
  • 28ce6cfb7a ensure suspected blossom request hash does not have slashes in it andrewheadricke 2025-03-20 17:08:55 +11:00
  • f47282c745 get rid of base64x temporarily since it doesn't work on arm64. fiatjaf 2025-03-19 15:02:56 -03:00
  • f72dea346f rename menu item on docs to say "blossom". fiatjaf 2025-03-17 13:38:35 -03:00
  • 51632dcc9f update blossom example to use a different database. fiatjaf 2025-03-17 13:34:35 -03:00
  • 6cc2477e89 fix blossom upload < 50bytes andrewheadricke 2025-03-14 15:14:13 +11:00
  • 581c4ece28 updating go-nostr to fix sonic parser bug. fiatjaf 2025-03-14 20:10:52 -03:00
  • 596bca93c3 go-nostr MessageParser string transition. fiatjaf 2025-03-12 00:53:19 -03:00
  • 650d9209c3 policies: nip70 enforcer. fiatjaf 2025-03-11 17:42:27 -03:00
  • 0d736cff82 fix blossom authorization decoder. fiatjaf 2025-03-11 17:32:12 -03:00
  • 44ed6f519d use NewMessageParser() that allows sonic to be opted in with tags. fiatjaf 2025-03-11 17:32:04 -03:00
  • db832d4255 use sonic json parser and other minor performance improvements. fiatjaf 2025-03-07 21:47:34 -03:00
  • 625bde38c5 update go-nostr so CountEnvelope only has one filter, which simplies COUNT handling a lot, specially with HLL. fiatjaf 2025-03-07 10:11:58 -03:00
  • 7c6031f4e5 resolve relative icon and banner urls in nip11 handler. fiatjaf 2025-02-23 18:20:54 -03:00
  • 6e224b9437 nip-86: stats, grant/revoke admin, listallowedevents and listdisallowedkinds ZigBalthazar 2025-02-13 02:27:10 +03:30
  • e9030a355c nip-86: add generic handler. Kay 2025-02-09 19:54:11 +00:00
  • a6ed7bced0 do not cancel subscription context on eose, only on subscription close. fiatjaf 2025-02-09 20:46:53 -03:00
  • 31128ebd18 filter policy: MustAuth() fiatjaf 2025-02-02 14:30:28 -03:00
  • 414867e62c feat(blossom): add bud-09 reporting handler. (#29) k. 2025-02-02 00:33:17 +03:30
  • 65383d6d65 making it a little better, so compiler wont complain. Kay 2025-01-28 15:44:42 +00:00
  • c4d9ef1025 fix(blossom): respond with 401 on missing Auth Anthony Accioly 2025-01-26 17:12:16 +00:00
  • 5e5a53240a docs: fix broken links. fiatjaf 2025-01-13 17:40:51 -03:00
  • 3a9c88603b add blossom page. fiatjaf 2025-01-13 17:38:10 -03:00
  • 2403f82dac improve eventstore page. fiatjaf 2025-01-13 17:37:57 -03:00
  • a289a77b6e restructure docs to have a more useful sidebar. fiatjaf 2025-01-13 17:18:56 -03:00
  • 1a03178d83 test expiration. fiatjaf 2025-01-13 17:02:15 -03:00
  • c73037ac82 test replaceable events. fiatjaf 2025-01-13 16:52:17 -03:00
  • 433cceea86 include the ReplaceEvent setup on all examples. fiatjaf 2025-01-13 16:47:21 -03:00
  • aa7422b2e4 tests for basic relay functionality. fiatjaf 2025-01-13 08:06:25 -03:00
  • d27f582a0b nip-40 expiration manager. fiatjaf 2025-01-13 00:05:41 -03:00
  • e1de0432fe fix @staab's mess. fiatjaf 2024-12-31 22:15:06 -03:00
  • 5b9b89543f Get service url when handling auth rather than mutating the relay, allow user to override service url via env var Jon Staab 2024-12-30 16:20:15 -08:00
  • 4dba9376a0 sanedefaults: allow a bigger burst of connections and events. fiatjaf 2024-12-10 23:34:18 -03:00
  • fa523a6ab9 blossom: etag and cache-control headers. fiatjaf 2024-12-09 15:41:29 -03:00
  • abbe61d128 use ReplaceEvent when available. fiatjaf 2024-12-08 00:50:29 -03:00
  • e9999feec0 turns out we need to bump a version because of annoying hex nips. fiatjaf 2024-12-07 07:58:20 -03:00
  • 6275f52134 support hyperloglog handlers on COUNT. fiatjaf 2024-12-07 00:26:22 -03:00
  • 5b88b9b087 small tweaks to nip86 authorization flow and use rl.ServiceURL. fiatjaf 2024-11-25 14:11:27 -03:00
  • 1b4d81dde4 corrects malformed json in blossom list Your Name 2024-11-22 00:04:40 -03:00
  • 7bfdbb557c fix(blossom): use io.ReadSeeker in Blossom example Anthony Accioly 2024-11-21 23:02:17 +00:00
  • 3f26a1f727 Change API of LoadBlob to return io.ReadSeeker instead of io.Reader and use ServeContent to serve blob content (#19) girino 2024-11-21 11:58:12 -03:00
  • 76ecf4f791 Merge pull request #17 from aaccioly-open-source/feature/bud01-cors-support fiatjaf_ 2024-11-05 22:59:18 -03:00
  • 1498da09c8 refactor(blossom): remove setCors function Anthony Accioly 2024-11-05 19:04:41 +00:00
  • 3d4dd71510 refactor(blossom): undo enhanced routing Anthony Accioly 2024-11-05 18:55:47 +00:00
  • 582a74c000 refactor: apply CORS rules on relay Anthony Accioly 2024-11-05 18:37:12 +00:00
  • bbcf948dd6 fix(blossom): forward requests to base relay Anthony Accioly 2024-11-05 17:56:56 +00:00
  • 553d848362 fix(policies): update check for ephemeral kinds Anthony Accioly 2024-11-05 17:32:56 +00:00
  • 2a80d4099d perf(blossom): set Access-Control-Max-Age to 24 h Anthony Accioly 2024-11-05 16:56:59 +00:00
  • ad6635d86c refactor(blossom): use Go 1.22 enhanced routing Anthony Accioly 2024-11-05 16:48:21 +00:00
  • c93441cd63 feat(blossom): use rs/cors to handle BUD-01 CORS Anthony Accioly 2024-11-04 17:18:37 +00:00
  • dc34dd7e90 build(deps): bump rs/cors version to v1.11.1 Anthony Accioly 2024-11-04 14:02:18 +00:00
  • a004f59187 fix(blossom): Example returns io.Reader Anthony Accioly 2024-11-04 13:56:13 +00:00
  • a931a83370 fix negentropy by making special provisions for bypassing query limits. fiatjaf 2024-11-03 16:57:16 -03:00
  • 1c15db2ca1 fix(blossom): CORS headers required by noStrudel Anthony Accioly 2024-10-31 05:06:58 +00:00
  • b617fea679 blossom: again a bunch of fixes. require Authorization on /upload again always. fiatjaf 2024-10-29 16:32:45 -03:00
  • 1d7bdccb3a blossom: fixes and updates from trying to use it. fiatjaf 2024-10-29 09:00:45 -03:00
  • 92d1a5b671 blossom: implement bud06 (upload requirements). fiatjaf 2024-10-28 17:30:25 -03:00
  • 7f878121fc blossom: return code from Reject* functions because HTTP is stupid. fiatjaf 2024-10-28 17:30:07 -03:00
  • a893dc2d2c blossom: store as a standalone interface (and an eventstore wrapper). fiatjaf 2024-10-27 23:00:51 -03:00
  • 91e7737ec1 basic modular blossom support. fiatjaf 2024-10-27 17:20:10 -03:00
  • 1dc12e5d2e support negentropy. fiatjaf 2024-10-26 23:41:39 -03:00
  • f3b18619c7 update eventstore just so badger and ristretto are the same everywhere, who knows what the package manager will do. fiatjaf 2024-10-23 23:17:50 -03:00
  • 902e882d97 policies: RestrictToSpecifiedKinds() to allow ephemeral. fiatjaf 2024-10-22 13:32:24 -03:00
  • 8f62b2fbbe policies.PreventLargeTags() example was too strict for "a" tags. fiatjaf 2024-10-21 08:53:35 -03:00
  • d4334ac2bb revert "a function to send an event directly to a specific connection." fiatjaf 2024-10-16 15:07:44 -03:00
  • 9069341657 a context that is canceled whenever a websocket is dropped. fiatjaf 2024-10-16 15:06:47 -03:00
  • 9137eb02b0 cookbook: reacting to auth events. fiatjaf 2024-10-14 12:20:46 -03:00
  • e9c9d0c3a7 a function to send an event directly to a specific connection. fiatjaf 2024-10-13 12:42:36 -03:00
  • 39d882857c fix missing ! in CheckID() fiatjaf 2024-09-25 14:33:43 -03:00
  • 6e04cca511 Update use-cases.md ptrio42 aka pitiunited 2024-09-25 02:30:50 +02:00
  • cc891d06ed update go-nostr and make checkid faster. fiatjaf 2024-09-24 19:04:18 -03:00
  • 08be77b914 empty filters are not insane. fiatjaf 2024-09-24 19:01:57 -03:00
  • e25400a61a actually we don't need all that fluff. fiatjaf 2024-09-16 17:39:54 -03:00
  • 635e91f360 policies: shoehorn an iterator in a xsync map Range(). fiatjaf 2024-09-16 15:59:08 -03:00
  • eb92c2aac5 make check id more simple. kehiy 2024-09-14 15:03:09 +03:30
  • 18fc0dc1dd ensure AddEvent contexts get cleaned so store queries aren't left half-read. fiatjaf 2024-09-12 22:33:53 -03:00
  • 6d827ac89a return blank IP and do not rate-limit when calling AddEvent(). fiatjaf 2024-09-11 23:02:01 -03:00
  • b8bb58f77c sane defaults: increase initial connections limit burst. fiatjaf 2024-09-11 08:00:39 -03:00