Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/nostr-relay
nostr relay
https://github.com/mattn/nostr-relay
nostr nostr-relay
Last synced: 27 days ago
JSON representation
nostr relay
- Host: GitHub
- URL: https://github.com/mattn/nostr-relay
- Owner: mattn
- Created: 2023-03-02T06:27:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T17:56:56.000Z (7 months ago)
- Last Synced: 2024-05-22T18:59:15.721Z (7 months ago)
- Topics: nostr, nostr-relay
- Language: Go
- Homepage:
- Size: 8.8 MB
- Stars: 37
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-nostr-japan - nostr-relay - postgresql/mysql/sqlite3 backended nostr relay. backup by [litestream](https://litestream.io/) for sqlite by [mattn](https://github.com/mattn) (Relay implementations)
- awesome-nostr - nostr-relay - relay.svg?style=social) - Nostr relay in Go based on relayer. Backend by sqlite3/postgresql/mysql. (Relays / Implementations)
README
# nostr-relay
nostr relay with backup method using litestream.
## Installation
1. Edit litestream.yaml
```yaml
dbs:
- path: /data/nostr-relay.sqlite
replicas:
- type: s3
endpoint: https://your-s3-endoint
name: nostr-relay.sqlite
bucket: nostr-relay-backup
path: nostr-relay.sqlite
forcePathStyle: true
sync-interval: 1s
access-key-id: your-s3-access-key-id
secret-access-key: your-secret-access-key
```* endpoint
* access-key-id
* secret-access-key2. Create secret from litestream.yaml
```
$ kubectl create secret generic litestream --from-file=litestream.yaml
```3. Deploy with kustomize
```
$ kubectl apply -k kustomize
```4. Override NIP-11 information
```
env:
- name: DATABASE_URL
value: /data/nostr-relay.sqlite
- name: NOSTR_RELAY_CONTACT
value: [email protected]
- name: NOSTR_RELAY_PUBKEY
value: npub1xxxxx
```## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a. mattn)