Skip to content

Commit 58b7400

Browse files
authored
Merge pull request #637 from hieblmi/sample-conf-file
conf: sample config for loopd
2 parents 7dc57b7 + 07e1254 commit 58b7400

File tree

1 file changed

+162
-0
lines changed

1 file changed

+162
-0
lines changed

sample-loopd.conf

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
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 L402 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+
; L402 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+
[sqlite]
105+
106+
; The full path to the database.
107+
; sqlite.dbfile=~/.loop/mainnet/loop_sqlite.db
108+
109+
[postgres]
110+
111+
; Database server hostname.
112+
; postgres.host=localhost
113+
114+
; Database server port.
115+
; postgres.port=5432
116+
117+
; Database user.
118+
; postgres.user=
119+
120+
; Database user's password.
121+
; postgres.password=
122+
123+
; Database name to use.
124+
; postgres.dbname=
125+
126+
; Max open connections to keep alive to the database server.
127+
; postgres.maxconnections=
128+
129+
; Whether to require using SSL (mode: require) when connecting to the server.
130+
; postgres.requiressl=false
131+
132+
[lnd]
133+
134+
; lnd instance rpc address
135+
; lnd.host=localhost:10009
136+
137+
; DEPRECATED: Use macaroonpath.
138+
; lnd.macaroondir=
139+
140+
; The full path to the single macaroon to use, either the admin.macaroon or a
141+
; custom baked one. Cannot be specified at the same time as macaroondir. A
142+
; custom macaroon must contain ALL permissions required for all subservers to
143+
; work, otherwise permission errors will occur.
144+
; lnd.macaroonpath=~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
145+
146+
; Path to lnd tls certificate
147+
; lnd.tlspath=~/.lnd
148+
149+
[server]
150+
151+
; Loop server address host:port
152+
; server.host=swap.lightning.today:11010
153+
154+
; The host:port of a SOCKS proxy through which all connections to the loop
155+
; server will be established over
156+
; server.proxy=
157+
158+
; Disable tls for communication to the loop server [testing only]
159+
; server.notls=false
160+
161+
; Path to loop server tls certificate [testing only]
162+
; server.tlspath=

0 commit comments

Comments
 (0)