Skip to content

Commit 25d6b8d

Browse files
committed
conf: sample config for loopd
1 parent 077d702 commit 25d6b8d

File tree

1 file changed

+171
-0
lines changed

1 file changed

+171
-0
lines changed

sample-loopd.conf

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
; Example configuration for loopd.
2+
;
3+
; The default location for this file is in ~/.loop/mainnet/loopd.conf on POSIX
4+
; OSes, $LOCALAPPDATA/Loop/loopd.conf on Windows,
5+
; ~/Library/Application Support/Loop/mainnet/loopd.conf on Mac OS and
6+
; $home/loop/loopd.conf on Plan9.
7+
; The default location of this file can be overwritten by specifying the
8+
; --configfile= flag when starting loopd.
9+
;
10+
; boolean values can be specified as true/false or 1/0. Per default
11+
; booleans are always set to false.
12+
13+
; If only one value is specified for an option, then this is also the
14+
; default value used by loopd. In case of multiple (example) values, the default
15+
; is explicitly mentioned.
16+
; If the part after the equal sign is empty then loopd has no default
17+
; for this option.
18+
19+
[Application Options]
20+
21+
; The network to run on which can be [regtest|testnet|mainnet|simnet].
22+
; network=mainnet
23+
24+
; Address to listen on for gRPC clients.
25+
; rpclisten=localhost:11010
26+
27+
; Address to listen on for REST clients.
28+
; restlisten=localhost:8081
29+
30+
; The value to send in the Access-Control-Allow-Origin header. Header will be
31+
; omitted if empty.
32+
; corsorigin=
33+
34+
; The directory for all of loop's data. If set, this option overwrites
35+
; --datadir, --logdir, --tlscertpath, --tlskeypath and --macaroonpath.
36+
; loopdir=~/.loop
37+
38+
; Path to configuration file.
39+
; configfile=~/.loop/mainnet/loopd.conf
40+
41+
; The directory for loopdb.
42+
; datadir=~/.loop
43+
44+
; The database backend to use for storing all asset related data. Can be
45+
; [sqlite|postgres]
46+
; databasebackend=sqlite
47+
48+
; Path to write the TLS certificate for loop's RPC and REST services.
49+
; tlscertpath=~/.loop/mainnet/tls.cert
50+
51+
; Path to write the TLS private key for loop's RPC and REST services.
52+
; tlskeypath=~/.loop/mainnet/tls.key
53+
54+
; Adds an extra IP to the generated certificate.
55+
; tlsextraip=
56+
57+
; Adds an extra domain to the generated certificate.
58+
; tlsextradomain=
59+
60+
; Re-generate TLS certificate and key if the IPs or domains are changed.
61+
; tlsautorefresh
62+
63+
; Do not include the interface IPs or the system hostname in TLS certificate,
64+
; use first --tlsextradomain as Common Name instead, if set.
65+
; tlsdisableautofill=false
66+
67+
; Loop's TLS certificate validity period in days. 1 year equals 8760h.
68+
; tlsvalidity=8760h0m0s
69+
70+
; Path to write the macaroon for loop's RPC and REST services if it doesn't
71+
; exist.
72+
; macaroonpath=~/.loop/mainnet
73+
74+
; Directory to log output.
75+
; logdir=~/.loop/logs
76+
77+
; Maximum logfiles to keep (0 for no rotation).
78+
; maxlogfiles=3
79+
80+
; Maximum logfile size in MB.
81+
; maxlogfilesize=10
82+
83+
; Logging level for all subsystems {trace, debug, info, warn, error, critical}
84+
; -- You may also specify <subsystem>=<level>,<subsystem2>=<level>,... to set.
85+
; debuglevel=
86+
87+
; Maximum cost in satoshis that loopd is going to pay for an LSAT token
88+
; automatically. Does not include routing fees.
89+
; maxlsatcost=1000
90+
91+
; Maximum routing fee in satoshis that we are willing to pay while paying for an
92+
; LSAT token.
93+
; maxlsatfee=10
94+
95+
; The maximum number of payment parts that may be used for a loop out swap.
96+
; loopoutmaxparts=5
97+
98+
; The timeout to use for off-chain payments.
99+
; totalpaymenttimeout=1h0m0s
100+
101+
; The maximum number of times an off-chain payment may be retried.
102+
; maxpaymentretries=3
103+
104+
; Enable experimental features: taproot HTLCs and MuSig2 loop out sweeps.
105+
; experimental=false
106+
107+
[sqlite]
108+
109+
; Skip applying migrations on startup.
110+
; sqlite.skipmigrations=false
111+
112+
; The full path to the database.
113+
; sqlite.dbfile=~/.loop/mainnet/loop_sqlite.db
114+
115+
[postgres]
116+
117+
; Skip applying migrations on startup.
118+
; postgres.skipmigrations=false
119+
120+
; Database server hostname.
121+
; postgres.host=
122+
123+
; Database server port.
124+
; postgres.port=
125+
126+
; Database user.
127+
; postgres.user=
128+
129+
; Database user's password.
130+
; postgres.password=
131+
132+
; Database name to use.
133+
; postgres.dbname=
134+
135+
; Max open connections to keep alive to the database server.
136+
; postgres.maxconnections=
137+
138+
; Whether to require using SSL (mode: require) when connecting to the server.
139+
; postgres.requiressl=false
140+
141+
[lnd]
142+
143+
; lnd instance rpc address
144+
; lnd.host=localhost:10009
145+
146+
; DEPRECATED: Use macaroonpath.
147+
; lnd.macaroondir=
148+
149+
; The full path to the single macaroon to use, either the admin.macaroon or a
150+
; custom baked one. Cannot be specified at the same time as macaroondir. A
151+
; custom macaroon must contain ALL permissions required for all subservers to
152+
; work, otherwise permission errors will occur.
153+
; lnd.macaroonpath=~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
154+
155+
; Path to lnd tls certificate
156+
; lnd.tlspath=
157+
158+
[server]
159+
160+
; Loop server address host:port
161+
; server.host=
162+
163+
; The host:port of a SOCKS proxy through which all connections to the loop
164+
; server will be established over
165+
; server.proxy=
166+
167+
; Disable tls for communication to the loop server [testing only]
168+
; server.notls=false
169+
170+
; Path to loop server tls certificate [testing only]
171+
; server.tlspath=

0 commit comments

Comments
 (0)