Skip to content

Commit

Permalink
fix: add SECRET as env variable (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
sroertgen committed May 5, 2023
1 parent e6ca10a commit 58a1254
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Expand Up @@ -3,6 +3,7 @@ services:
build: .
container_name: nostream
environment:
SECRET: ${SECRET}
RELAY_PORT: 8008
# Master
NOSTR_CONFIG_DIR: /home/node/.nostr
Expand Down

0 comments on commit 58a1254

Please sign in to comment.