-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy path.env-sample
More file actions
142 lines (108 loc) · 4.93 KB
/
Copy path.env-sample
File metadata and controls
142 lines (108 loc) · 4.93 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
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
# base64 -w0 ~/.lnd/tls.cert
LND_CERT_BASE64=''
# base64 -w0 ~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
LND_MACAROON_BASE64=''
LND_GRPC_HOST='127.0.0.1:10009'
BOT_TOKEN=''
# When 'true' the bot stops trading: it never connects to the LN node,
# schedules no jobs, and replies to every message with a
# service-discontinued notice pointing users to Mostro
SUNSET_MODE='false'
# The max fee amount that the Bot will charge to the seller, 0.002 = 0.2%
MAX_FEE=0
# Percentage of the total amount that the bot will take as a fee, 0.7 = 70%
FEE_PERCENT=0.7
# Uncomment if running bot behind Tor service
# SOCKS_PROXY_HOST='socks5h://localhost:9050'
DB_USER='mongodb_user'
DB_PASS='mongodb_passwd'
DB_HOST='localhost'
DB_PORT='27017'
DB_NAME='p2plnbot'
# If MONGO_URI have a value DB_* vars will be ignored
MONGO_URI='mongodb://username:password@localhost'
# lightning invoice expiration time in milliseconds
INVOICE_EXPIRATION_WINDOW=3600000
# This is the time that a taker has to pay the invoice (seller) or add a new invoice (buyer), in seconds
HOLD_INVOICE_EXPIRATION_WINDOW=600
CHANNEL='@p2plnbotchannel'
ADMIN_CHANNEL='-10012345678987654321'
HELP_GROUP='@lnp2pbotHelp'
MAX_DISPUTES=4
# Hold invoice cltv delta (expiration time in blocks)
HOLD_INVOICE_CLTV_DELTA=144
# Safety window for hold invoices expiration, needed when blocks are mined faster than regularly (in blocks)
HOLD_INVOICE_CLTV_DELTA_SAFETY_WINDOW=12
# We try to pay again when the buyer invoice failed, in minutes
PENDING_PAYMENT_WINDOW=5
# Fiat currency rate API
FIAT_RATE_NAME=''
FIAT_RATE_EP=''
NODE_ENV='development'
# Expiration time for published order in seconds
ORDER_PUBLISHED_EXPIRATION_WINDOW=82800
# Minimum amount for a payment in satoshis
MIN_PAYMENT_AMT=1
# Maximum number of orders that a user can have published (PENDING) at the same time
MAX_PENDING_ORDERS=4
# Order-take rate limit: max orders a user can take before being temporarily restricted
MAX_ORDERS_TAKE=10
# Hours a user must wait after hitting the take limit before they can take orders again
ORDER_TAKE_COOLDOWN_HOURS=24
# winston Log level
LOG_LEVEL='debug'
# Max routing fee that we want to pay to the network, 0.001 = 0.1%
MAX_ROUTING_FEE=0.001
# Lightning Network pathfinding timeout in milliseconds (default: 60000 = 60 seconds)
LN_PATHFINDING_TIMEOUT=60000
# Telegram bot handler timeout in milliseconds (default: 60000 = 60 seconds)
BOT_HANDLER_TIMEOUT=60000
# Attempts to pay the invoice again when the payment failed
PAYMENT_ATTEMPTS=2
# Temporary kill-switch to disable Lightning Address payouts (security mitigation).
# When set to "true", buyers must paste a regular BOLT11 invoice; saved Lightning
# Addresses are kept and ignored. Leave empty/unset to keep Lightning Address enabled.
DISABLE_LN_ADDRESS=
# Here will go the disputes from non community orders
DISPUTE_CHANNEL='@p2plnbotDispute'
# Maximum values for counterparty requirements that users can set
MAX_COUNTERPARTY_AGE_REQUIREMENT=30
MAX_COUNTERPARTY_ORDERS_REQUIREMENT=10
# time-to-live for communities in days, communities without successful orders on this time are deleted
COMMUNITY_TTL=31
# nostr bot private key
NOSTR_SK=''
# Enable community creation via the /community command (default: false, opt-in per instance)
COMMUNITY_CREATION_ENABLED=false
# Minimum requirements to create a community (leave unset to disable the restriction)
# Note: It is recommended to combine MIN_REPUTATION with MIN_ORDERS to avoid gaming the system.
# MIN_VOLUME is measured in satoshis.
# COMMUNITY_CREATION_MIN_ORDERS=100
# COMMUNITY_CREATION_MIN_VOLUME_SATS=10000000
# COMMUNITY_CREATION_MIN_DAYS_USING_BOT=365
# COMMUNITY_CREATION_MIN_REPUTATION=4.8
# Number of currencies allowed in a community
COMMUNITY_CURRENCIES=20
# Max number of payment methods that can be configured in a community for wizzard selection
MAX_COMMUNITY_PAYMENT_METHODS=10
# List of relays to connect to
RELAYS='ws://localhost:7000,ws://localhost:8000,ws://localhost:9000'
# Seconds to wait to allow disputes to be started
DISPUTE_START_WINDOW=600
#The relative size of the random image when compared to the qr (as a ratio of imageWidth/qrWidth)
IMAGE_TO_QR_RATIO=0.2
# Number of notification messages sent to the admin, informing them of lack of solvers before disabling the community. The admin receives `MAX_ADMIN_WARNINGS_BEFORE_DEACTIVATION - 1` notification messages.
MAX_ADMIN_WARNINGS_BEFORE_DEACTIVATION=10
# The file in which commands will be logged. It can be both an absolute or relative path (realative to the directory in which your run `npm start`)
COMMAND_LOG_FILE='commands.log'
# The maximum size of each command log file in megabytes
COMMAND_LOG_SIZE_MB=4
# The maximum number of log files to keep
MAX_LOG_FILES=5
# External monitoring service URL (e.g. https://monitor.example.com)
# Leave empty to disable monitoring heartbeats
MONITOR_URL=''
# Authentication token for the monitor service
MONITOR_AUTH_TOKEN=''
# Bot name identifier sent with heartbeats (default: lnp2pBot)
MONITOR_BOT_NAME='lnp2pBot'