241 Commits

Author SHA1 Message Date
fiatjaf
d9a6c6a1ad fix forgotten envconfig read. 2021-12-26 20:56:22 -03:00
fiatjaf
ba0d99c131 GetListenerFilters() helper and Injector interface for implementations. 2021-12-26 07:11:54 -03:00
fiatjaf
b4f94b8fdd add .Until filtering to event query. 2021-12-26 07:11:19 -03:00
fiatjaf
30eae726c1 turn relayer into a server framework and put actual relay code into ./basic 2021-12-25 21:22:40 -03:00
fiatjaf
ac93e5c028 make subscription ids unique per each websocket connection.
before they were globally unique, which was wrong.
2021-12-16 21:01:00 -03:00
fiatjaf
0265be6d31 upgrade to go-nostr v0.2.0. 2021-12-16 20:54:57 -03:00
fiatjaf
c64d3e44dc my personal deployment script. 2021-11-28 17:01:29 -03:00
fiatjaf
333d530901 don't send NOTICE on json parsing errors. 2021-11-28 17:01:17 -03:00
fiatjaf
5a797d2c65 fix jsonpath-based taq query. 2021-11-28 16:55:39 -03:00
fiatjaf
7a3e07c5b2 change binary name. 2021-11-08 18:23:26 -03:00
fiatjaf
a3f2645881 delete this sqlite thing. 2021-11-08 18:18:28 -03:00
fiatjaf
6359ad8776 ensure deletion of old stuff such that we don't have a huge database. 2021-11-08 18:15:27 -03:00
fiatjaf
c1c3d29723 remove sqlite support. 2021-11-08 14:52:12 -03:00
Saul
405dfd3425 create if not exist
on second container run script return error: event already exist
https://i.imgur.com/KB7cu8i.png
exit code 0 not because of this, don't pay attention.  it's because wrong hostname (addr) on my side.
2021-10-24 16:55:36 -03:00
Saul
e1b384093b string name update
changed DATABASE_URL to POSTGRESQL_DATABASE.
because on Dolu89 Dockerfile this variable is used:
https://gist.github.com/Dolu89/5d98cb929ef7d27c59bf01b14767cda2

So was confused why relay container can't connect to postgres container. 
POSTGRESQL_DATABASE name make sense because you also have here SQL lite database
2021-10-24 16:55:36 -03:00
fiatjaf
7370c1bbef authors: [] means you won't get anything. 2021-02-23 09:25:24 -03:00
fiatjaf
694eccd0c8 small fixes and guards. 2021-02-23 00:27:16 -03:00
fiatjaf
decd60efbd update go-nostr to v0.1.1 2021-02-22 01:18:57 -03:00
fiatjaf
1ff313e1a4 fix filter.Kind pointer type mismatch. 2021-02-21 23:46:46 -03:00
fiatjaf
d4aa16f38a update go-nostr dependency. 2021-02-21 23:43:24 -03:00
Richard Bondi
36cd95a58e wrong index 2021-02-20 19:04:22 -03:00
fiatjaf
bc860ff28b one extra bit of logging. 2021-02-20 19:04:17 -03:00
fiatjaf
08da692de6 change path from /ws to /. 2021-02-20 19:02:34 -03:00
fiatjaf
db384be3f9 fix some query bugs. 2021-02-17 16:59:56 -03:00
fiatjaf
d0c627968b update go-nostr dependency to reflect an actually published version. 2021-02-15 11:49:15 -03:00
fiatjaf
e2adc6bc85 add kind to filter and rebind query. 2021-02-14 22:39:52 -03:00
fiatjaf
9c992c90dc adapt to new nip-01. 2021-02-14 21:08:02 -03:00
fiatjaf
80d244b2c3 remove rate limiter, this is just a proof-of-concept anyway. 2021-02-07 14:28:06 -03:00
Richard Bondi
a1aaed41c6 fix html escaping 2021-02-07 13:23:51 -03:00
Richard Bondi
6c6bf45c72 properly scan tags from database 2021-02-01 10:23:58 -03:00
Richard Bondi
3dacb07b62 delete metadata, not notes 2021-01-22 00:46:21 -03:00
fiatjaf
029049e587 remove writedeadline for writing ping. 2021-01-19 17:37:36 -03:00
Richard Bondi
e58f5cbc84 fix body for calling request 2021-01-16 21:38:02 -03:00
fiatjaf
2ee22402c5 fix related events: ref => tags. 2021-01-15 18:29:39 -03:00
fiatjaf
a45b4e3cb5 change hosted instance URL to herokuapp. 2021-01-15 10:10:06 -03:00
fiatjaf
31c8e775a7 fix build tags. 2021-01-15 10:08:10 -03:00
fiatjaf
9bc5cad500 heroku will work better without a procfile. 2021-01-14 22:17:18 -03:00
fiatjaf
4357bd1beb fix bug when removing key from listenership. 2021-01-14 22:07:53 -03:00
fiatjaf
3132195275 deploy to heroku. 2021-01-14 22:02:12 -03:00
fiatjaf
6ed83d6bc3 add link to hosted version. 2021-01-13 23:52:34 -03:00
fiatjaf
e9cbff07a4 migrate off of main nostr repository. 2021-01-13 23:46:06 -03:00