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