-
Notifications
You must be signed in to change notification settings - Fork 122
conf: sample config for loopd #637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,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. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps fill with some defaults for a locally running postgres instance. |
||
| ; 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= | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a suggestion