Skip to content

Commit

Permalink
doc: add sample settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
cameri committed Oct 26, 2022
1 parent 951e1c2 commit 3fbebaf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ You can change the default folder by setting the `NOSTR_CONFIG_DIR` environment
Run nostr-ts-relay using one of the quick-start guides at least once and `~/.nostr/settings.json` will be created.
Any changes made to the settings file will be read on the next start.

See [CONFIGURATION.md](CONFIGURATION.md) for a detailed explanation of each environment variable and setting.
A sample settings file is included at the project root under the name `settings.sample.json`. Feel free to copy it to `~/.nostr/settings.json`
if you would like to have a settings file before running the relay first.

See [CONFIGURATION.md](CONFIGURATION.md) for a detailed explanation of each environment variable and setting.
## Dev Channel

For development discussions, please use the [Nostr Typescript Relay Dev Channel](https://t.me/nostr_ts_relay).
Expand Down
35 changes: 35 additions & 0 deletions settings.sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"info": {
"relay_url": "wss://nostr-ts-relay.your-domain.com",
"name": "nostr-ts-relay.your-domain.com",
"description": "A nostr relay written in Typescript.",
"pubkey": "replace-with-your-pubkey",
"contact": "[email protected]"
},
"limits": {
"event": {
"eventId": {
"minLeadingZeroBits": 0
},
"kind": {
"whitelist": [],
"blacklist": []
},
"pubkey": {
"minLeadingZeroBits": 0,
"whitelist": [],
"blacklist": []
},
"createdAt": {
"maxPositiveDelta": 900,
"maxNegativeDelta": 0
}
},
"client": {
"subscription": {
"maxSubscriptions": 10,
"maxFilters": 10
}
}
}
}

0 comments on commit 3fbebaf

Please sign in to comment.