Skip to content

Commit 58a1254

Browse files
authored
fix: add SECRET as env variable (#298)
1 parent e6ca10a commit 58a1254

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ Clone repository and enter directory:
9797
cd nostream
9898
```
9999

100+
Generate a secret with: `openssl rand -hex 128`
101+
Copy the output and paste it into an `.env` file:
102+
103+
```
104+
SECRET=aaabbbccc...dddeeefff
105+
# Secret shortened for brevity
106+
```
107+
100108
Start:
101109
```
102110
./scripts/start
@@ -185,8 +193,8 @@ Set the following environment variables:
185193
REDIS_PASSWORD=nostr_ts_relay
186194
```
187195

188-
If enabling payments, generate a long random secret and set SECRET:
189-
You may want to use `openssl rand -hex 128` to generate a secret.
196+
Generate a long random secret and set SECRET:
197+
You may want to use `openssl rand -hex 128` to generate a secret.
190198

191199
```
192200
SECRET=aaabbbccc...dddeeefff

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
build: .
44
container_name: nostream
55
environment:
6+
SECRET: ${SECRET}
67
RELAY_PORT: 8008
78
# Master
89
NOSTR_CONFIG_DIR: /home/node/.nostr

0 commit comments

Comments
 (0)