forked from nostriphant/transpher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
61 lines (43 loc) · 1.95 KB
/
.env.example
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
# Enable debug mode for AMP library
AMP_DEBUG=0
RELAY_MAX_CONNECTIONS_PER_IP=1000
AGENT_NSEC=<AGENT NSEC-key>
RELAY_URL=<remote accessible URL starting with ws:// or wss:// to your relay, only used in agent>
RELAY_OWNER_NPUB=<OWNER OR ROOT NPUB-key>
RELAY_NAME=<Your relay name>
RELAY_DESCRIPTION=<A brief description of your relay>
RELAY_CONTACT=<EMAIL TO CONTACT YOU>
RELAY_PORT=<PORT_NUMBER>
# Define loglevel for logs/server.log (DEBUG, NOTICE, INFO, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY)
RELAY_LOG_LEVEL=INFO
# where to cache events
RELAY_STORE=/data/events
#where to cache files (NIP-94, NIP-92)
RELAY_FILES=/data/files
# where to store data (events and files), setting this, ignores RELAY_STORE & RELAY_FILES
# it also enables the SQLite backend
RELAY_DATA=/data
# Max lower delta for created_at, in seconds (default: -86400 = 24 hours)
LIMIT_EVENT_CREATED_AT_LOWER_DELTA
# Max lower delta for created_at, in seconds (default: +900 = 15 min)
LIMIT_EVENT_CREATED_AT_UPPER_DELTA
# Events kinds only to allow (default: none)
LIMIT_EVENT_KIND_WHITELIST
# Events kinds only to deny (default: none)
LIMIT_EVENT_KIND_BLACKLIST
# Max content length of 10 bytes, default no max length (unless for private direct messages)
LIMIT_EVENT_CONTENT_MAXLENGTH=10
# Max content length of 10 bytes, for event kind 1
LIMIT_EVENT_CONTENT_MAXLENGTH=10,1
# Max content length of 10 bytes, for event kinds 1 - 5
LIMIT_EVENT_CONTENT_MAXLENGTH=10,1,5
# Minimum no leading zeros for event-id required to have acceptable PoW
LIMIT_EVENT_EVENTID_MIN_LEADING_ZEROS=0
# Minimum no leading zeros for pubkey required to have acceptable PoW (WARNING: UNTESTED)
LIMIT_EVENT_PUBKEY_MIN_LEADING_ZEROS=0
# Maximum number of subscriptions per client, zero means disabled
LIMIT_REQ_MAX_PER_CLIENT=10
# Maximum number of filters per subscription, zero means disabled
LIMIT_REQ_MAX_FILTERS_PER_SUBSCRIPTION=10
# Maximum number of filters per count request, zero means disabled
LIMIT_COUNT_MAX_FILTERS=10