forked from lightninglabs/loop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-loopd.conf
162 lines (115 loc) · 4.51 KB
/
sample-loopd.conf
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
155
156
157
158
159
160
161
162
; Example configuration for loopd.
;
; The default location for this file is in ~/.loop/mainnet/loopd.conf on POSIX
; OSes, $LOCALAPPDATA/Loop/loopd.conf on Windows,
; ~/Library/Application Support/Loop/mainnet/loopd.conf on Mac OS and
; $home/loop/loopd.conf on Plan9.
; The default location of this file can be overwritten by specifying the
; --configfile= flag when starting loopd.
;
; boolean values can be specified as true/false or 1/0. Per default
; booleans are always set to false.
; If only one value is specified for an option, then this is also the
; default value used by loopd. In case of multiple (example) values, the default
; is explicitly mentioned.
; If the part after the equal sign is empty then loopd has no default
; for this option.
[Application Options]
; The network to run on which can be [regtest|testnet|mainnet|simnet].
; network=mainnet
; Address to listen on for gRPC clients.
; rpclisten=localhost:11010
; Address to listen on for REST clients.
; restlisten=localhost:8081
; The value to send in the Access-Control-Allow-Origin header. Header will be
; omitted if empty.
; corsorigin=
; The directory for all of loop's data. If set, this option overwrites
; --datadir, --logdir, --tlscertpath, --tlskeypath and --macaroonpath.
; loopdir=~/.loop
; Path to configuration file.
; configfile=~/.loop/mainnet/loopd.conf
; The directory for loopdb.
; datadir=~/.loop
; The database backend to use for storing all asset related data. Can be
; [sqlite|postgres]
; databasebackend=sqlite
; Path to write the TLS certificate for loop's RPC and REST services.
; tlscertpath=~/.loop/mainnet/tls.cert
; Path to write the TLS private key for loop's RPC and REST services.
; tlskeypath=~/.loop/mainnet/tls.key
; Adds an extra IP to the generated certificate.
; tlsextraip=
; Adds an extra domain to the generated certificate.
; tlsextradomain=
; Re-generate TLS certificate and key if the IPs or domains are changed.
; tlsautorefresh
; Do not include the interface IPs or the system hostname in TLS certificate,
; use first --tlsextradomain as Common Name instead, if set.
; tlsdisableautofill=false
; Loop's TLS certificate validity period in days. 1 year equals 8760h.
; tlsvalidity=8760h0m0s
; Path to write the macaroon for loop's RPC and REST services if it doesn't
; exist.
; macaroonpath=~/.loop/mainnet
; Directory to log output.
; logdir=~/.loop/logs
; Maximum logfiles to keep (0 for no rotation).
; maxlogfiles=3
; Maximum logfile size in MB.
; maxlogfilesize=10
; Logging level for all subsystems {trace, debug, info, warn, error, critical}
; -- You may also specify <subsystem>=<level>,<subsystem2>=<level>,... to set.
; debuglevel=
; Maximum cost in satoshis that loopd is going to pay for an L402 token
; automatically. Does not include routing fees.
; maxlsatcost=1000
; Maximum routing fee in satoshis that we are willing to pay while paying for an
; L402 token.
; maxlsatfee=10
; The maximum number of payment parts that may be used for a loop out swap.
; loopoutmaxparts=5
; The timeout to use for off-chain payments.
; totalpaymenttimeout=1h0m0s
; The maximum number of times an off-chain payment may be retried.
; maxpaymentretries=3
[sqlite]
; The full path to the database.
; sqlite.dbfile=~/.loop/mainnet/loop_sqlite.db
[postgres]
; Database server hostname.
; postgres.host=localhost
; Database server port.
; postgres.port=5432
; Database user.
; postgres.user=
; Database user's password.
; postgres.password=
; Database name to use.
; postgres.dbname=
; Max open connections to keep alive to the database server.
; postgres.maxconnections=
; Whether to require using SSL (mode: require) when connecting to the server.
; postgres.requiressl=false
[lnd]
; lnd instance rpc address
; lnd.host=localhost:10009
; DEPRECATED: Use macaroonpath.
; lnd.macaroondir=
; The full path to the single macaroon to use, either the admin.macaroon or a
; custom baked one. Cannot be specified at the same time as macaroondir. A
; custom macaroon must contain ALL permissions required for all subservers to
; work, otherwise permission errors will occur.
; lnd.macaroonpath=~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
; Path to lnd tls certificate
; lnd.tlspath=~/.lnd
[server]
; Loop server address host:port
; server.host=swap.lightning.today:11010
; The host:port of a SOCKS proxy through which all connections to the loop
; server will be established over
; server.proxy=
; Disable tls for communication to the loop server [testing only]
; server.notls=false
; Path to loop server tls certificate [testing only]
; server.tlspath=