relay-86/.env.example
@s.roertgen fa7f9715e1
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m14s
Add SERVICE_URL env var to fix NIP-98 auth behind reverse proxy
When running behind a reverse proxy that terminates TLS, khatru
auto-detects ws:// instead of wss://, causing NIP-98 "u" tag
validation to fail. SERVICE_URL overrides the auto-detected URL.
2026-03-03 15:46:35 +01:00

21 lines
564 B
Text

# Relay operator pubkey (hex format) - becomes the primary admin
PUBKEY=
# Additional admin pubkeys (comma-separated hex format)
ADMIN_PUBKEYS=
# Relay info (NIP-11)
NAME=Standard Relay
DESCRIPTION=A standard Nostr relay with NIP-86 management API
ICON=
# Public-facing URL (set when behind a reverse proxy to fix NIP-98 auth)
# SERVICE_URL=wss://your-relay.example.com
# Server configuration
PORT=3334
DB_PATH=./data/relay.db
# Allowlist mode (optional)
# When enabled, only pubkeys explicitly added to the allowlist can publish events
# ALLOWLIST_MODE=true