// DefaultTLSKeyPath is the default full path of the autogenerated TLS
// key.
DefaultTLSKeyPath=filepath.Join(
LoopDirBase,DefaultNetwork,DefaultTLSKeyFilename,
)
)
typelndConfigstruct{
@ -50,12 +82,20 @@ type Config struct {
RESTListenstring`long:"restlisten" description:"Address to listen on for REST clients"`
CORSOriginstring`long:"corsorigin" description:"The value to send in the Access-Control-Allow-Origin header. Header will be omitted if empty."`
LoopDirstring`long:"loopdir" description:"The directory for all of loop's data."`
ConfigFilestring`long:"configfile" description:"Path to configuration file."`
DataDirstring`long:"datadir" description:"Directory for loopdb."`
LoopDirstring`long:"loopdir" description:"The directory for all of loop's data. If set, this option overwrites --datadir, --logdir, --tlscertpath and --tlskeypath."`
ConfigFilestring`long:"configfile" description:"Path to configuration file."`
DataDirstring`long:"datadir" description:"Directory for loopdb."`
TLSCertPathstring`long:"tlscertpath" description:"Path to write the TLS certificate for loop's RPC and REST services."`
TLSKeyPathstring`long:"tlskeypath" description:"Path to write the TLS private key for loop's RPC and REST services."`
TLSExtraIPs[]string`long:"tlsextraip" description:"Adds an extra IP to the generated certificate."`
TLSExtraDomains[]string`long:"tlsextradomain" description:"Adds an extra domain to the generated certificate."`
TLSAutoRefreshbool`long:"tlsautorefresh" description:"Re-generate TLS certificate and key if the IPs or domains are changed."`
TLSDisableAutofillbool`long:"tlsdisableautofill" description:"Do not include the interface IPs or the system hostname in TLS certificate, use first --tlsextradomain as Common Name instead, if set."`
LogDirstring`long:"logdir" description:"Directory to log output."`
MaxLogFilesint`long:"maxlogfiles" description:"Maximum logfiles to keep (0 for no rotation)"`
MaxLogFileSizeint`long:"maxlogfilesize" description:"Maximum logfile size in MB"`
MaxLogFilesint`long:"maxlogfiles" description:"Maximum logfiles to keep (0 for no rotation)."`
MaxLogFileSizeint`long:"maxlogfilesize" description:"Maximum logfile size in MB."`
DebugLevelstring`long:"debuglevel" description:"Logging level for all subsystems {trace, debug, info, warn, error, critical} -- You may also specify <subsystem>=<level>,<subsystem2>=<level>,... to set the log level for individual subsystems -- Use show to list available subsystems"`
MaxLSATCostuint32`long:"maxlsatcost" description:"Maximum cost in satoshis that loopd is going to pay for an LSAT token automatically. Does not include routing fees."`
@ -78,19 +118,21 @@ const (
// DefaultConfig returns all default values for the Config struct.