mirror of
https://github.com/Cameri/nostream.git
synced 2025-08-07 07:46:25 +02: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
|
||||
```
|
||||
|
||||
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:
|
||||
```
|
||||
./scripts/start
|
||||
@@ -185,8 +193,8 @@ Set the following environment variables:
|
||||
REDIS_PASSWORD=nostr_ts_relay
|
||||
```
|
||||
|
||||
If enabling payments, generate a long random secret and set SECRET:
|
||||
You may want to use `openssl rand -hex 128` to generate a secret.
|
||||
Generate a long random secret and set SECRET:
|
||||
You may want to use `openssl rand -hex 128` to generate a secret.
|
||||
|
||||
```
|
||||
SECRET=aaabbbccc...dddeeefff
|
||||
|
@@ -3,6 +3,7 @@ services:
|
||||
build: .
|
||||
container_name: nostream
|
||||
environment:
|
||||
SECRET: ${SECRET}
|
||||
RELAY_PORT: 8008
|
||||
# Master
|
||||
NOSTR_CONFIG_DIR: /home/node/.nostr
|
||||
|
Reference in New Issue
Block a user