|
| 1 | +# --- REQUIRED --- |
| 2 | +SECRET=change_me_to_something_long_and_random # Generate: openssl rand -hex 128 |
| 3 | + |
| 4 | +# --- POSTGRESQL --- |
| 5 | +DB_HOST=localhost |
| 6 | +DB_PORT=5432 |
| 7 | +DB_NAME=nostr_ts_relay |
| 8 | +DB_USER=your_psql_username |
| 9 | +DB_PASSWORD=your_psql_password |
| 10 | +# Alternatively, use a URI: |
| 11 | +# DB_URI=postgresql://user:pass@localhost:5432/nostr_ts_relay |
| 12 | + |
| 13 | +# --- DB POOL TUNING (Optional) --- |
| 14 | +# DB_MIN_POOL_SIZE=0 |
| 15 | +# DB_MAX_POOL_SIZE=3 |
| 16 | +# DB_ACQUIRE_CONNECTION_TIMEOUT=60000 |
| 17 | + |
| 18 | +# --- REDIS (Required for Rate Limiting) --- |
| 19 | +REDIS_HOST=localhost |
| 20 | +REDIS_PORT=6379 |
| 21 | +# REDIS_USER=default |
| 22 | +# REDIS_PASSWORD= |
| 23 | +# Alternatively, use a URI: |
| 24 | +# REDIS_URI=redis://localhost:6379 |
| 25 | + |
| 26 | +# --- SERVER CONFIG --- |
| 27 | +RELAY_PORT=8008 |
| 28 | +WORKER_COUNT=2 # Defaults to CPU count. Use 1 or 2 for local testing. |
| 29 | +# NOSTR_CONFIG_DIR=.nostr # Where settings.yaml lives |
| 30 | + |
| 31 | +# --- DEBUGGING --- |
| 32 | +# Useful namespaces: maintenance-worker, database-client:*, cache-client, etc. |
| 33 | +# DEBUG=maintenance-worker |
| 34 | + |
| 35 | +# --- RELAY PRIVATE KEY (Optional) --- |
| 36 | +# RELAY_PRIVATE_KEY=your_hex_private_key |
| 37 | + |
| 38 | +# --- PAYMENTS (Only if enabled in settings.yaml) --- |
| 39 | +# ZEBEDEE_API_KEY= |
| 40 | +# NODELESS_API_KEY= |
| 41 | +# NODELESS_WEBHOOK_SECRET= |
| 42 | +# OPENNODE_API_KEY= |
| 43 | +# LNBITS_API_KEY= |
| 44 | + |
| 45 | +# --- READ REPLICAS (Optional) --- |
| 46 | +# READ_REPLICA_ENABLED=false |
| 47 | +# READ_REPLICAS=2 |
| 48 | +# RR0_DB_HOST=localhost |
| 49 | +# RR0_DB_PORT=5432 |
| 50 | +# RR0_DB_NAME=nostr_ts_relay |
| 51 | +# RR0_DB_USER=your_psql_username |
| 52 | +# RR0_DB_PASSWORD=your_psql_password |
| 53 | +# RR0_DB_MIN_POOL_SIZE=0 |
| 54 | +# RR0_DB_MAX_POOL_SIZE=3 |
| 55 | +# RR0_DB_ACQUIRE_CONNECTION_TIMEOUT=60000 |
| 56 | +# RR1_DB_HOST=localhost |
| 57 | +# RR1_DB_PORT=5432 |
| 58 | +# RR1_DB_NAME=nostr_ts_relay |
| 59 | +# RR1_DB_USER=your_psql_username |
| 60 | +# RR1_DB_PASSWORD=your_psql_password |
| 61 | +# RR1_DB_MIN_POOL_SIZE=0 |
| 62 | +# RR1_DB_MAX_POOL_SIZE=3 |
| 63 | +# RR1_DB_ACQUIRE_CONNECTION_TIMEOUT=60000 |
| 64 | + |
| 65 | +# --- TOR (Optional) --- |
| 66 | +# TOR_HOST=localhost |
| 67 | +# TOR_CONTROL_PORT=9051 |
| 68 | +# TOR_PASSWORD= |
| 69 | +# HIDDEN_SERVICE_PORT=80 |
0 commit comments