// DefaultAutogenValidity is the default validity of a self-signed
// certificate. The value corresponds to 14 months
// (14 months * 30 days * 24 hours).
DefaultAutogenValidity=14*30*24*time.Hour
// certificate in number of days.
DefaultAutogenValidity=365*24*time.Hour
)
typelndConfigstruct{
@ -152,6 +151,7 @@ type Config struct {
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."`
TLSValiditytime.Duration`long:"tlsvalidity" description:"Loop's TLS certificate validity period in days. Defaults to 8760h (1 year)"`
MacaroonPathstring`long:"macaroonpath" description:"Path to write the macaroon for loop's RPC and REST services if it doesn't exist."`