-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.example
154 lines (108 loc) · 2.45 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# You can configure your instance by setup following envs
############################
# General
############################
# Port to serve
# Defaults 9000
PORT=9000
# Postgresql database url
DB_URL=
# Pool size
# defaults 3
DB_POOL_SIZE=
# Relay name
RELAY_NAME=
# Relay description
RELAY_DESC=
# Admin pubkey
# Hex encoding
ADMIN_PUBKEY=
# Admin contact
ADMIN_CONTACT=
# Relay countries
RELAY_COUNTRIES=CA,US,CN,JP
###########################
# Features
###########################
# BroadcastChannel on Deno Deploy
ENABLE_BROADCASTCHANNEL=
# Allow unknown kind types
ENABLE_ALLOW_UNKNOWN_KIND=
# Disable NIP-11 information
DISABLE_NIP11=
# Spam detect percent
# if set to 0, will disable spam filter
SPAM_DETECT_PERCENT=0.5
###########################
# Bot settings
###########################
# Bot private key, in hex encoding
BOT_KEY=
# Bot name, defaults to `[your relay name]'s bot`
# Bot username is `[your relay name]_bot`
BOT_NAME=
# Bot avatar, defaults to https://ibb.co/G3pDMqt
BOT_AVATAR=
# Bot relay
# You must setup this value if you enabled payment bot.
BOT_RELAY=
############################
# Limitations
############################
# Max message length
MAX_MESSAGE_LENGTH=2000000
# Max subscriptions per connection
MAX_SUBSCRIPTIONS=
# Max filters per request
MAX_FILTERS=
# Max limit per filter
MAX_LIMIT=
# Max subscription id per request
MAX_SUBID_LENGTH=
# Min prefix for ids and authors filter
MIN_PREFIX=
# Max event tags per event
MAX_EVENT_TAGS=
# Max content length per event
MAX_CONTENT_LENGTH=
# Min PoW difficulty
MIN_POW_DIFFICULTY=
# Auth required
AUTH_REQUIRED=
# Payment required
PAYMENT_REQUIRED=
############################
# Strategies
############################
# NIPs
NIPS=1,2,3,4
# Event retention
EVENT_RETENTION=[{"kinds":[0,1],"time":3600}]
# Event created_at range
# NIP-22
EVENT_TIEMSTAMP_RANGE=-3600~100
# Broadcast relays
BROADCAST_RELAYS=wss://relay.damus.io,wss://relay.nostr.band
# Whitelist
# In hex encoding
WHITELIST_PUBKEYS=123123123,123123123
############################
# Preferences
############################
# Language tags
LANGUAGE_TAGS=en,en-419
# Tags
TAGS=nsfw,sfw-only,anime,geek
# Posting policy
POSTING_POLICY=https://example.com/
############################
# Payment settings
############################
# Payment LNURL
PAYMENT_LNURL=
# FEES_ADMISSION
FEES_ADMISSION=1000
# FEES_SUBSCRIPTION
FEES_SUBSCRIPTION=200/2592000
# FEES_PUBLICATION
FEES_PUBLICATION=1,2,3:300;4,5,6:100