github-actions[bot]
70da8eff42
Fork Sync: Update from parent repository ( #5 )
...
* docs: typo in `build-essential` package name
* improvement(NIP-42): use 'restricted:' prefix for auth error msgs
* docs: add database maintenance example queries
* feat: allow logging output to file
* feat: roll over logs daily
* refactor: reorder imports
* improvement: default to logging on stdout
* fix: ensure startup SQL runs, even with zero min writers
---------
Co-authored-by: thesimplekid <tsk@thesimplekid.com>
Co-authored-by: rorp <rorp@protonmail.com>
Co-authored-by: Yuval Adam <_@yuv.al>
Co-authored-by: Jamin M <jaminmenter@outlook.com>
Co-authored-by: Greg Heartsfield <scsibug@imap.cc>
2023-06-25 11:02:44 +02:00
Greg Heartsfield
ba0b50bc9c
build: bump version to 0.8.9
2023-04-22 13:47:08 -05:00
Greg Heartsfield
80c459c36c
improvement: switch to jemalloc allocator
2023-04-06 18:33:30 -05:00
thesimplekid
c0158af18b
feat(NIP-111): pay to relay (experimental)
2023-02-25 15:38:26 -06:00
Greg Heartsfield
2be75e18fb
build: bump version to 0.8.8
2023-02-21 08:16:40 -06:00
Greg Heartsfield
39f9984c4f
build: bump version to 0.8.7
2023-02-17 21:05:36 -06:00
Greg Heartsfield
0ef7d618a8
build: bump version to 0.8.6
2023-02-17 13:59:07 -06:00
rorp
5cecfba319
feat(NIP-42): pubkey authentication
...
Configurable in `config.toml`. Limited functionality, but this does
send metadata to gRPC for event authorization.
fixes: https://todo.sr.ht/~gheartsfield/nostr-rs-relay/66
2023-02-15 18:51:40 -06:00
Greg Heartsfield
692925942a
build: bump version to 0.8.5
2023-02-13 17:53:33 -06:00
Greg Heartsfield
01d0d44868
build: bump version to 0.8.4
2023-02-13 09:34:30 -06:00
Greg Heartsfield
f3a42712a6
build: bump version to 0.8.3
2023-02-13 08:08:28 -06:00
Greg Heartsfield
a16c4e698a
feat: gRPC authorization for events
...
closes: https://todo.sr.ht/~gheartsfield/nostr-rs-relay/46
2023-02-11 13:26:08 -06:00
Greg Heartsfield
d95adbcb3d
build: bump version to 0.8.2
2023-02-02 16:21:45 -06:00
Greg Heartsfield
559541b160
build: bump version to 0.8.1
2023-02-01 18:16:08 -06:00
Greg Heartsfield
9dd97908cf
build: bump version to 0.8.0
2023-02-01 07:52:24 -06:00
w3irdrobot
c1152ce430
improvement(NIP-19): identify and parse NIP-19 addresses
2023-01-29 18:55:30 -06:00
Greg Heartsfield
57e1b53c13
feat: postgres migration schema v2
...
This primarily deals with correctly handling tag values.
2023-01-27 20:13:47 -06:00
Greg Heartsfield
34a8f99d61
build: bump release to RC 1
2023-01-24 08:04:42 -06:00
Kieran
16f6e974c8
feat: add support for PostgreSQL as a backend repository
2023-01-22 16:26:54 -06:00
Kieran
4121c872bc
feat: prometheus metrics
...
Prometheus metrics exposed at /metrics
2023-01-22 11:08:12 -06:00
Greg Heartsfield
6800c2e39d
improvement: add NostrRepo trait, with sqlite implementation
...
This is inspired by the work of
v0l (https://github.com/v0l/nostr-rs-relay/ ).
A new trait abstracts the storage layer with an async API. Rusqlite
is still used with worker threads, but this allows for Postgresql or
other backends to be used.
There may be bugs, this has not been rigorously tested.
2023-01-22 09:49:49 -06:00
Greg Heartsfield
cf3e67500f
build: bump version to 0.7.17
2023-01-15 15:48:39 -06:00
Rasmus Schlunsen
73f4f60cc7
improvement: use clap for command line args
2023-01-14 09:22:11 -06:00
Greg Heartsfield
ffd4e6f997
build: bump version to 0.7.16
2023-01-04 17:28:05 -06:00
Greg Heartsfield
104ef2b9e1
build: bump version to 0.7.15
2022-12-27 17:04:48 -06:00
Greg Heartsfield
6a8c4ed1b5
build: bump version to 0.7.14
2022-12-26 11:26:48 -06:00
Greg Heartsfield
3e4ae4aeec
feat: cache prepared statements and trace expanded SQL queries
2022-12-25 10:47:32 -06:00
Greg Heartsfield
95748647f0
build: bump version to 0.7.13
2022-12-22 16:27:34 -06:00
Greg Heartsfield
ce37fc1a2d
build: bump version to 0.7.12
2022-12-19 14:50:42 -06:00
Greg Heartsfield
462eb46642
build: bump version to 0.7.11
2022-12-18 20:52:01 -06:00
Greg Heartsfield
fb8375aef2
build: bump version to 0.7.10
2022-12-18 13:46:18 -06:00
Greg Heartsfield
7a3899d852
build: bump version to 0.7.9
2022-12-18 09:21:07 -06:00
Greg Heartsfield
9be04120c7
build: bump version to 0.7.8
2022-12-17 12:01:43 -06:00
Greg Heartsfield
1b2c6f9fca
build: bump version to 0.7.7
2022-12-17 10:09:44 -06:00
Greg Heartsfield
0e851d4f71
build: bump version to 0.7.6
2022-12-17 07:51:57 -06:00
Greg Heartsfield
e8557d421b
build: bump version to 0.7.5
2022-12-16 17:21:00 -06:00
Greg Heartsfield
84a58ebbcd
build: bump version to 0.7.3
2022-12-16 06:32:00 -06:00
Greg Heartsfield
06078648c8
build: bump version to 0.7.2
2022-11-19 07:55:52 -06:00
Greg Heartsfield
cc0fcc5d66
docs: add Cargo package metadata
2022-11-19 07:32:17 -06:00
Greg Heartsfield
e8aa450802
build: bump version to 0.7.1
2022-11-05 10:35:38 -05:00
Greg Heartsfield
caffbbbede
build: bump version to 0.7.0
2022-10-16 15:42:11 -05:00
Greg Heartsfield
72f8a1aa5c
feat(NIP-26): allow searches for delegated public keys
...
Implements core NIP-26 delegated event functionality. Events can
include a `delegation` tag that provides a signature and restrictions
on which events can be delegated.
Notable points on the implementation so far:
* Schema has been upgraded to include an index and new column.
* Basic rune parsing/evaluation to implement the example event in the
NIP, but no more.
* No special logic for deletion.
* No migration logic for determining delegated authors for
already-stored events.
2022-10-16 15:25:06 -05:00
Greg Heartsfield
2af5f9fbe8
fix: correct schema upgrade logic (and refactor)
...
Schema upgrades were buggy from 4->5 (the v5 would be skipped). This
change also refactors the logic slightly so that future additions can
be clearer (no need to have if and else-if combinations).
2022-10-09 08:24:01 -05:00
Greg Heartsfield
6633f8b472
feat: replace logging with tracing
2022-09-28 07:19:59 -05:00
Greg Heartsfield
baeb77af99
test: dynamically find open port for test relay
2022-09-17 14:36:05 -05:00
Greg Heartsfield
4fa8616c73
feat: enable use of tokio-console with diagnostics.tracing setting
...
View real-time tokio diagnostics by setting the configuration option
"diagnostics.tracing" to true.
2022-09-11 12:44:45 -05:00
Greg Heartsfield
4d983dd1e0
improvement: upgrade uuid dependency
2022-09-02 12:37:11 -05:00
Greg Heartsfield
11c33582ef
improvement: remove useless carats from Cargo.toml deps
2022-09-02 12:35:02 -05:00
Greg Heartsfield
8da6f6555a
build: bump version to 0.6.2
2022-08-18 17:52:16 -07:00
Kirill Kovalenko
2b4b17dbda
fix: windows compilation with bundled sqlite3
...
Using 'bundled' is recommended by
https://github.com/rusqlite/rusqlite#usage to avoid common build
issues
2022-08-07 10:35:36 -05:00