mirror of
https://github.com/Cameri/nostream.git
synced 2025-12-18 16:41:08 +01:00
fix: add SECRET as env variable (#298)
This commit is contained in:
12
README.md
12
README.md
@@ -97,6 +97,14 @@ Clone repository and enter directory:
|
|||||||
cd nostream
|
cd nostream
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Generate a secret with: `openssl rand -hex 128`
|
||||||
|
Copy the output and paste it into an `.env` file:
|
||||||
|
|
||||||
|
```
|
||||||
|
SECRET=aaabbbccc...dddeeefff
|
||||||
|
# Secret shortened for brevity
|
||||||
|
```
|
||||||
|
|
||||||
Start:
|
Start:
|
||||||
```
|
```
|
||||||
./scripts/start
|
./scripts/start
|
||||||
@@ -185,8 +193,8 @@ Set the following environment variables:
|
|||||||
REDIS_PASSWORD=nostr_ts_relay
|
REDIS_PASSWORD=nostr_ts_relay
|
||||||
```
|
```
|
||||||
|
|
||||||
If enabling payments, generate a long random secret and set SECRET:
|
Generate a long random secret and set SECRET:
|
||||||
You may want to use `openssl rand -hex 128` to generate a secret.
|
You may want to use `openssl rand -hex 128` to generate a secret.
|
||||||
|
|
||||||
```
|
```
|
||||||
SECRET=aaabbbccc...dddeeefff
|
SECRET=aaabbbccc...dddeeefff
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
container_name: nostream
|
container_name: nostream
|
||||||
environment:
|
environment:
|
||||||
|
SECRET: ${SECRET}
|
||||||
RELAY_PORT: 8008
|
RELAY_PORT: 8008
|
||||||
# Master
|
# Master
|
||||||
NOSTR_CONFIG_DIR: /home/node/.nostr
|
NOSTR_CONFIG_DIR: /home/node/.nostr
|
||||||
|
|||||||
Reference in New Issue
Block a user