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

View File

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