fix: stuff
This commit is contained in:
parent
554b4e91f7
commit
63ed19947a
2 changed files with 3 additions and 1 deletions
|
@ -170,6 +170,7 @@ type Config struct {
|
||||||
KeepaliveTimeout int `json:"keepaliveTimeout"`
|
KeepaliveTimeout int `json:"keepaliveTimeout"`
|
||||||
ProxySetHeaders map[string]string `json:"proxySetHeaders,omitempty"`
|
ProxySetHeaders map[string]string `json:"proxySetHeaders,omitempty"`
|
||||||
AlwaysSetCookie bool `json:"alwaysSetCookie,omitempty"`
|
AlwaysSetCookie bool `json:"alwaysSetCookie,omitempty"`
|
||||||
|
DefaultEnable bool `json:"defaultEnable,omitempty"` /*# toredash */
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultCacheDuration is the fallback value if no cache duration is provided
|
// DefaultCacheDuration is the fallback value if no cache duration is provided
|
||||||
|
|
|
@ -762,7 +762,7 @@ func NewDefault() Configuration {
|
||||||
defNginxStatusIpv4Whitelist = append(defNginxStatusIpv4Whitelist, "127.0.0.1")
|
defNginxStatusIpv4Whitelist = append(defNginxStatusIpv4Whitelist, "127.0.0.1")
|
||||||
defNginxStatusIpv6Whitelist = append(defNginxStatusIpv6Whitelist, "::1")
|
defNginxStatusIpv6Whitelist = append(defNginxStatusIpv6Whitelist, "::1")
|
||||||
defProxyDeadlineDuration := time.Duration(5) * time.Second
|
defProxyDeadlineDuration := time.Duration(5) * time.Second
|
||||||
defGlobalExternalAuth := GlobalExternalAuth{"", "", "", "", "", append(defResponseHeaders, ""), "", "", "", []string{}, map[string]string{}, false}
|
defGlobalExternalAuth := GlobalExternalAuth{"", "", "", "", "", append(defResponseHeaders, ""), "", "", "", []string{}, map[string]string{}, false, true}
|
||||||
|
|
||||||
cfg := Configuration{
|
cfg := Configuration{
|
||||||
AllowSnippetAnnotations: false,
|
AllowSnippetAnnotations: false,
|
||||||
|
@ -976,4 +976,5 @@ type GlobalExternalAuth struct {
|
||||||
AuthCacheDuration []string `json:"authCacheDuration"`
|
AuthCacheDuration []string `json:"authCacheDuration"`
|
||||||
ProxySetHeaders map[string]string `json:"proxySetHeaders,omitempty"`
|
ProxySetHeaders map[string]string `json:"proxySetHeaders,omitempty"`
|
||||||
AlwaysSetCookie bool `json:"alwaysSetCookie,omitempty"`
|
AlwaysSetCookie bool `json:"alwaysSetCookie,omitempty"`
|
||||||
|
DefaultEnable bool `json:"defaultEnable,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue