-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
example.env
127 lines (85 loc) · 4.32 KB
/
example.env
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Example Environment Variables
# Database URL
DATABASE_URL=postgresql://username:xxxxxxxxxx@host:port/database
# Optional: Maximum number of database connections (default: 50)
DATABASE_MAX_CONNECTIONS=50
# Optional: Hostname of the application, used for NIP-42. If not set, NIP-42 is disabled (default: )
# HOSTNAME=nostr-relay.app
# **DEPRECATED** Please use HOSTNAME instead
# DOMAIN=nostr-relay.app
# Optional: Port number for the application (default: 3000)
# PORT=3000
# Optional: Git commit SHA (default: )
# GIT_COMMIT_SHA=
# Optional: Directory for log files (default: )
# LOG_DIR=
# Optional: Log level (default: info)
# LOG_LEVEL=info
# Optional: Threshold for slow execution logging in milliseconds (default: 500)
# LOG_SLOW_EXECUTION_THRESHOLD=500
# Optional: MeiliSearch host (default: )
# MEILI_SEARCH_HOST=
# Optional: MeiliSearch API key (default: )
# MEILI_SEARCH_API_KEY=
# Optional: Comma-separated list of event kinds to sync with MeiliSearch (default: 0,1,30023)
# MEILI_SEARCH_SYNC_EVENT_KINDS=0,1,30023
# Optional: Name of the relay (default: nostr-relay-nestjs)
# RELAY_NAME=nostr-relay-nestjs
# Optional: Description of the relay (default: A Nostr relay with a clear architecture and high test coverage)
# RELAY_DESCRIPTION=A Nostr relay with a clear architecture and high test coverage
# Optional: Public key of the relay (default: )
# RELAY_PUBKEY=
# Optional: Contact information for the relay (default: )
# RELAY_CONTACT=
# Optional: Upper limit for created_at field (default: )
# CREATED_AT_UPPER_LIMIT=
# Optional: Lower limit for created_at field (default: )
# CREATED_AT_LOWER_LIMIT=
# Optional: Minimum proof-of-work difficulty (default: 0)
# MIN_POW_DIFFICULTY=0
# Optional: Maximum number of subscriptions per client (default: 20)
# MAX_SUBSCRIPTIONS_PER_CLIENT=20
# Optional: Blacklist. Comma-separated list of public keys to blacklist (default: )
# BLACKLIST=
# Optional: Whitelist. Comma-separated list of public keys to whitelist (default: )
# WHITELIST=
# Optional: Time-to-live (TTL) for the throttler of RESTful API in milliseconds (default: 1000)
# THROTTLER_TTL=1000
# Optional: Limit for the throttler of RESTful API (default: 100)
# THROTTLER_LIMIT=100
# Optional: Time-to-live (TTL) for the throttler of EVENT requests in milliseconds (default: 1000)
# THROTTLER_EVENT_TTL=1000
# Optional: Limit for the throttler of EVENT requests (default: 10)
# THROTTLER_EVENT_LIMIT=10
# Optional: Block duration for the throttler of EVENT requests in milliseconds (default: 600000)
# THROTTLER_EVENT_BLOCK_DURATION=600000
# Optional: Time-to-live (TTL) for the throttler of REQ requests in milliseconds (default: 100)
# THROTTLER_REQ_TTL=1000
# Optional: Limit for the throttler of REQ requests (default: 10)
# THROTTLER_REQ_LIMIT=10
# Optional: Block duration for the throttler of REQ requests in milliseconds (default: 600000)
# THROTTLER_REQ_BLOCK_DURATION=600000
# Optional: Time-to-live (TTL) for event handling result cache in milliseconds, set to 0 to disable caching (default: 300000)
# EVENT_HANDLING_RESULT_CACHE_TTL=300000
# Optional: Time-to-live (TTL) for filter result cache in milliseconds, set to 0 to disable caching (default: 10000)
# FILTER_RESULT_CACHE_TTL=10000
# Optional: Enable/disable event message handling (default: true)
# EVENT_MESSAGE_HANDLING_ENABLED=true
# Optional: Enable/disable request message handling (default: true)
# REQ_MESSAGE_HANDLING_ENABLED=true
# Optional: Enable/disable close message handling (default: true)
# CLOSE_MESSAGE_HANDLING_ENABLED=true
# Optional: Enable/disable top message handling (default: true)
# TOP_MESSAGE_HANDLING_ENABLED=true
# Optional: Enable/disable auth message handling (default: true)
# AUTH_MESSAGE_HANDLING_ENABLED=true
# Optional: The anchor public key for the Web of Trust. If set, the relay will enable WoT (default: )
# WOT_TRUST_ANCHOR_PUBKEY=
# Optional: The depth of the Web of Trust. 1 means trust anchor and anchor's following, 2 means trust anchor, anchor's following, and anchor's following's following (default: 0)
# WOT_TRUST_DEPTH=
# Optional: The refresh interval for the Web of Trust in milliseconds (default: 3600000 = 1 hour)
# WOT_REFRESH_INTERVAL=
# Optional: Comma-separated list of relay URLs to fetch follow list from (default: )
# WOT_FETCH_FOLLOW_LIST_FROM=
# Optional: JSON string of filters to skip WoT Guard (default: )
# WOT_SKIP_FILTERS=