From 58a12546f0f08c3a32ff64fe472b223f026bc184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20R=C3=B6rtgen?= Date: Fri, 5 May 2023 22:18:28 +0200 Subject: [PATCH] fix: add SECRET as env variable (#298) --- README.md | 12 ++++++++++-- docker-compose.yml | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c21788ca..3c19157a 100644 --- a/README.md +++ b/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 diff --git a/docker-compose.yml b/docker-compose.yml index aef81d11..9a29891c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ services: build: . container_name: nostream environment: + SECRET: ${SECRET} RELAY_PORT: 8008 # Master NOSTR_CONFIG_DIR: /home/node/.nostr