You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.go
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,10 @@ const (
30
30
// we can serve basic functionality by default.
31
31
defaultChainConn=false
32
32
33
-
// DefaultAutogenValidity is the default validity of a self-signed
33
+
// defaultTLSCertDuration is the default validity of a self-signed
34
34
// certificate. The value corresponds to 14 months
35
35
// (14 months * 30 days * 24 hours).
36
-
DefaultAutogenValidity=14*30*24*time.Hour
36
+
defaultTLSCertDuration=14*30*24*time.Hour
37
37
)
38
38
39
39
var (
@@ -133,12 +133,13 @@ type Config struct { //nolint:maligned
133
133
// for all subsystems the same or individual level by subsystem.
134
134
DebugLevelstring`long:"debuglevel" description:"Debug level for faraday and its subsystems."`
135
135
136
-
TLSCertPathstring`long:"tlscertpath" description:"Path to write the TLS certificate for faraday's RPC and REST services."`
137
-
TLSKeyPathstring`long:"tlskeypath" description:"Path to write the TLS private key for faraday's RPC and REST services."`
138
-
TLSExtraIPs []string`long:"tlsextraip" description:"Adds an extra IP to the generated certificate."`
139
-
TLSExtraDomains []string`long:"tlsextradomain" description:"Adds an extra domain to the generated certificate."`
140
-
TLSAutoRefreshbool`long:"tlsautorefresh" description:"Re-generate TLS certificate and key if the IPs or domains are changed."`
141
-
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."`
136
+
TLSCertPathstring`long:"tlscertpath" description:"Path to write the TLS certificate for faraday's RPC and REST services."`
137
+
TLSKeyPathstring`long:"tlskeypath" description:"Path to write the TLS private key for faraday's RPC and REST services."`
138
+
TLSExtraIPs []string`long:"tlsextraip" description:"Adds an extra IP to the generated certificate."`
139
+
TLSExtraDomains []string`long:"tlsextradomain" description:"Adds an extra domain to the generated certificate."`
140
+
TLSAutoRefreshbool`long:"tlsautorefresh" description:"Re-generate TLS certificate and key if the IPs or domains are changed."`
141
+
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."`
142
+
TLSCertDuration time.Duration`long:"tlscertduration" description:"The duration for which the auto-generated TLS certificate will be valid for."`
142
143
143
144
MacaroonPathstring`long:"macaroonpath" description:"Path to write the macaroon for faraday's RPC and REST services if it doesn't exist."`
0 commit comments