/.nostr` folder exists. The configuration directory can be changed by setting the `NOSTR_CONFIG_DIR` environment variable.
| Name | Description |
|---------------------------------------------|-------------------------------------------------------------------------------|
diff --git a/Dockerfile b/Dockerfile
index 5467928..6ab0fe1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,8 +13,8 @@ RUN npm run build
FROM node:18-alpine3.16
LABEL org.opencontainers.image.title="Nostr Typescript Relay"
-LABEL org.opencontainers.image.source=https://github.com/Cameri/nostr-ts-relay
-LABEL org.opencontainers.image.description="nostr-ts-relay"
+LABEL org.opencontainers.image.source=https://github.com/Cameri/nostream
+LABEL org.opencontainers.image.description="nostream"
LABEL org.opencontainers.image.authors="Ricardo Arturo Cabral Mejía"
LABEL org.opencontainers.image.licenses=MIT
diff --git a/Dockerfile.railwayapp b/Dockerfile.railwayapp
index e48bc97..77d6721 100644
--- a/Dockerfile.railwayapp
+++ b/Dockerfile.railwayapp
@@ -39,8 +39,8 @@ RUN npm run build
FROM node:18-alpine3.16
LABEL org.opencontainers.image.title="Nostr Typescript Relay"
-LABEL org.opencontainers.image.source=https://github.com/Cameri/nostr-ts-relay
-LABEL org.opencontainers.image.description="nostr-ts-relay"
+LABEL org.opencontainers.image.source=https://github.com/Cameri/nostream
+LABEL org.opencontainers.image.description="nostream"
LABEL org.opencontainers.image.authors="Ricardo Arturo Cabral Mejía"
LABEL org.opencontainers.image.licenses=MIT
diff --git a/README.md b/README.md
index fe7796e..a30a5c1 100644
--- a/README.md
+++ b/README.md
@@ -1,34 +1,34 @@
-# [nostr-ts-relay](https://github.com/Cameri/nostr-ts-relay)
+# [nostream](https://github.com/Cameri/nostream)
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -37,7 +37,7 @@ Typescript.
This implementation is production-ready. See below for supported features.
-The project master repository is available on [GitHub](https://github.com/Cameri/nostr-ts-relay).
+The project master repository is available on [GitHub](https://github.com/Cameri/nostream).
[](https://railway.app/new/template/BWx8DY?referralCode=qVdmfO)
@@ -85,8 +85,8 @@ You may have to uninstall Docker if you installed it using a different guide.
Clone repository and enter directory:
```
- git clone git@github.com:Cameri/nostr-ts-relay.git
- cd nostr-ts-relay
+ git clone git@github.com:Cameri/nostream.git
+ cd nostream
```
Start:
@@ -115,10 +115,10 @@ By default this server will run continuously until you stop it with Ctrl+C or un
You can [install as a systemd service](https://www.swissrouting.com/nostr.html#installing-as-a-service) if you want the server to run again automatically whenever the system is restarted. For example:
```
- $ nano /etc/systemd/system/nostr-ts-relay.service
+ $ nano /etc/systemd/system/nostream.service
# Note: replace "User=..." with your username, and
- # "/home/nostr/nostr-ts-relay" with the directory where you cloned the repo.
+ # "/home/nostr/nostream" with the directory where you cloned the repo.
[Unit]
Description=Nostr TS Relay
@@ -130,9 +130,9 @@ You can [install as a systemd service](https://www.swissrouting.com/nostr.html#i
Restart=always
RestartSec=5
User=nostr
- WorkingDirectory=/home/nostr/nostr-ts-relay
- ExecStart=/home/nostr/nostr-ts-relay/scripts/start
- ExecStop=/home/nostr/nostr-ts-relay/scripts/stop
+ WorkingDirectory=/home/nostr/nostream
+ ExecStart=/home/nostr/nostream/scripts/start
+ ExecStop=/home/nostr/nostream/scripts/stop
[Install]
WantedBy=multi-user.target
@@ -141,14 +141,14 @@ You can [install as a systemd service](https://www.swissrouting.com/nostr.html#i
And then:
```
- systemctl enable nostr-ts-relay
- systemctl start nostr-ts-relay
+ systemctl enable nostream
+ systemctl start nostream
```
The logs can be viewed with:
```
- journalctl -u nostr-ts-relay
+ journalctl -u nostream
```
## Quick Start (Standalone)
@@ -186,8 +186,8 @@ Start Redis and use `redis-cli` to set the default password and verify:
Clone repository and enter directory:
```
- git clone git@github.com:Cameri/nostr-ts-relay.git
- cd nostr-ts-relay
+ git clone git@github.com:Cameri/nostream.git
+ cd nostream
```
Install dependencies:
@@ -232,7 +232,7 @@ To clean up the build, coverage and test reports run:
Open a terminal and change to the project's directory:
```
- cd /path/to/nostr-ts-relay
+ cd /path/to/nostream
```
Run unit tests with:
@@ -267,7 +267,7 @@ To see the unit tests coverage report open `.coverage/unit/lcov-report/index.htm
Open a terminal and change to the project's directory:
```
- cd /path/to/nostr-ts-relay
+ cd /path/to/nostream
```
Run integration tests with:
@@ -286,7 +286,7 @@ And to get integration test coverage run:
Open a terminal and change to the project's directory:
```
- cd /path/to/nostr-ts-relay
+ cd /path/to/nostream
```
Set the following environment variables:
@@ -328,7 +328,7 @@ To see the integration test coverage report open `.coverage/integration/lcov-rep
You can change the default folder by setting the `NOSTR_CONFIG_DIR` environment variable to a different path.
-Run nostr-ts-relay using one of the quick-start guides at least once and `~/.nostr/settings.json` will be created.
+Run nostream 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.
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`
diff --git a/package-lock.json b/package-lock.json
index 8e8749a..d492e67 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "nostr-ts-relay",
+ "name": "nostream",
"version": "1.12.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
- "name": "nostr-ts-relay",
+ "name": "nostream",
"version": "1.12.0",
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index cbe4545..a9f98c2 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "nostr-ts-relay",
+ "name": "nostream",
"version": "1.12.0",
"description": "A Nostr relay written in Typescript.",
"supportedNips": [
@@ -33,7 +33,7 @@
"test:unit": "mocha 'test/**/*.spec.ts'",
"test:unit:watch": "npm run test:unit -- --min --watch --watch-files src/**/*,test/**/*",
"cover:unit": "nyc --report-dir .coverage/unit npm run test:unit",
- "docker:build": "docker build -t nostr-ts-relay .",
+ "docker:build": "docker build -t nostream .",
"pretest:integration": "mkdir -p .test-reports/integration",
"test:integration": "cucumber-js",
"cover:integration": "nyc --report-dir .coverage/integration npm run test:integration -- -p cover",
@@ -51,7 +51,7 @@
},
"repository": {
"type": "git",
- "url": "git+https://github.com/Cameri/nostr-ts-relay.git"
+ "url": "git+https://github.com/Cameri/nostream.git"
},
"keywords": [
"nostr",
@@ -61,9 +61,9 @@
"author": "Ricardo Arturo Cabral Mejía (npub1qqqqqqyz0la2jjl752yv8h7wgs3v098mh9nztd4nr6gynaef6uqqt0n47m)",
"license": "MIT",
"bugs": {
- "url": "https://github.com/Cameri/nostr-ts-relay/issues"
+ "url": "https://github.com/Cameri/nostream/issues"
},
- "homepage": "https://github.com/Cameri/nostr-ts-relay#readme",
+ "homepage": "https://github.com/Cameri/nostream#readme",
"devDependencies": {
"@commitlint/cli": "17.2.0",
"@commitlint/config-conventional": "17.2.0",
diff --git a/scripts/print_tor_hostname b/scripts/print_tor_hostname
index b275c35..09bccb5 100755
--- a/scripts/print_tor_hostname
+++ b/scripts/print_tor_hostname
@@ -1,4 +1,4 @@
#!/bin/bash
PROJECT_ROOT="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/.."
-cat $PROJECT_ROOT/.nostr/tor/data/nostr-ts-relay/hostname
+cat $PROJECT_ROOT/.nostr/tor/data/nostream/hostname
diff --git a/settings.sample.json b/settings.sample.json
index bce4373..98643d2 100644
--- a/settings.sample.json
+++ b/settings.sample.json
@@ -1,7 +1,7 @@
{
"info": {
- "relay_url": "wss://nostr-ts-relay.your-domain.com",
- "name": "nostr-ts-relay.your-domain.com",
+ "relay_url": "wss://nostream.your-domain.com",
+ "name": "nostream.your-domain.com",
"description": "A nostr relay written in Typescript.",
"pubkey": "replace-with-your-pubkey",
"contact": "operator@your-domain.com"
diff --git a/test/integration/docker-compose.yml b/test/integration/docker-compose.yml
index 71ae9b7..d99b595 100644
--- a/test/integration/docker-compose.yml
+++ b/test/integration/docker-compose.yml
@@ -36,7 +36,7 @@ services:
migrations-test:
condition: service_completed_successfully
networks:
- - nostr-ts-relay-test
+ - nostream-test
links:
- db-test
db-test:
@@ -46,7 +46,7 @@ services:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: nostr_ts_relay_test
networks:
- - nostr-ts-relay-test
+ - nostream-test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
timeout: 5s
@@ -56,7 +56,7 @@ services:
image: redis:7.0.5-alpine3.16
command: redis-server --save 20 1 --loglevel warning --requirepass nostr_ts_relay_test
networks:
- - nostr-ts-relay-test
+ - nostream-test
restart: always
healthcheck:
test: [ "CMD", "redis-cli", "ping", "|", "grep", "PONG" ]
@@ -82,9 +82,9 @@ services:
db-test:
condition: service_healthy
networks:
- - nostr-ts-relay-test
+ - nostream-test
links:
- db-test
networks:
- nostr-ts-relay-test:
+ nostream-test:
diff --git a/test/integration/features/nip-01/nip-01.feature b/test/integration/features/nip-01/nip-01.feature
index b58006a..b5fe5c8 100644
--- a/test/integration/features/nip-01/nip-01.feature
+++ b/test/integration/features/nip-01/nip-01.feature
@@ -21,8 +21,8 @@ Feature: NIP-01
Scenario: Alice posts a recommend_server event
Given someone called Alice
And Alice subscribes to author Alice
- When Alice sends a recommend_server event with content "https://nostr-ts-relay.wlvs.space"
- Then Alice receives a recommend_server event from Alice with content "https://nostr-ts-relay.wlvs.space"
+ When Alice sends a recommend_server event with content "https://nostr-relay.wlvs.space"
+ Then Alice receives a recommend_server event from Alice with content "https://nostr-relay.wlvs.space"
Scenario: Alice can't post a text_note event with an invalid signature
Given someone called Alice
diff --git a/tor/torrc b/tor/torrc
index 38edd39..a39d39a 100644
--- a/tor/torrc
+++ b/tor/torrc
@@ -1,2 +1,2 @@
-HiddenServiceDir /var/lib/tor/nostr-ts-relay
+HiddenServiceDir /var/lib/tor/nostream
HiddenServicePort 80 10.10.10.2:8008