fix: add SECRET as env variable (#298)

This commit is contained in:
Steffen Rörtgen
2023-05-05 22:18:28 +02:00
committed by GitHub
parent e6ca10a0ce
commit 58a12546f0
2 changed files with 11 additions and 2 deletions

View File

@@ -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

View File

@@ -3,6 +3,7 @@ services:
build: .
container_name: nostream
environment:
SECRET: ${SECRET}
RELAY_PORT: 8008
# Master
NOSTR_CONFIG_DIR: /home/node/.nostr