From a91aa87ef98ea05cdc1cbde4059e2b1e2db5e3fc Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 7 Nov 2025 14:47:49 +0100 Subject: [PATCH] refactor: move .env file to scripts directory --- scripts/.env.example | 10 ++++++++++ scripts/publish-markdown.sh | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 scripts/.env.example diff --git a/scripts/.env.example b/scripts/.env.example new file mode 100644 index 00000000..2e82ac5b --- /dev/null +++ b/scripts/.env.example @@ -0,0 +1,10 @@ +# Nostr configuration for publish-markdown.sh script +# Copy this file to .env and fill in your values + +# Your Nostr secret key (nsec, ncryptsec, or hex format) +# You can also set this via environment variable: export NOSTR_SECRET_KEY=your_key +NOSTR_SECRET_KEY= + +# Space-separated list of relay URLs to publish to +# If not provided, events will be created but not published +RELAYS="ws://localhost:10547 ws://localhost:4869 wss://relay.primal.net wss://wot.dergigi.com wss://relay.dergigi.com wss://nostr.einundzwanzig.space wss://relay.damus.io wss://relay.nostr.bg wss://nos.lol wss://eden.nostr.land" diff --git a/scripts/publish-markdown.sh b/scripts/publish-markdown.sh index 7711c2bf..75490f36 100755 --- a/scripts/publish-markdown.sh +++ b/scripts/publish-markdown.sh @@ -12,7 +12,7 @@ set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" MARKDOWN_DIR="$PROJECT_ROOT/test/markdown" -ENV_FILE="$PROJECT_ROOT/.env" +ENV_FILE="$SCRIPT_DIR/.env" # Load .env file if it exists if [ -f "$ENV_FILE" ]; then