fix: stuff

This commit is contained in:
Tore S. Loenoey 2023-11-22 13:43:40 +01:00 committed by Tore Stendal Lønøy
parent 554b4e91f7
commit 63ed19947a
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -170,6 +170,7 @@ type Config struct {
KeepaliveTimeout int `json:"keepaliveTimeout"`
ProxySetHeaders map[string]string `json:"proxySetHeaders,omitempty"`
AlwaysSetCookie bool `json:"alwaysSetCookie,omitempty"`
DefaultEnable bool `json:"defaultEnable,omitempty"` /*# toredash */
}
// DefaultCacheDuration is the fallback value if no cache duration is provided

View file

@ -762,7 +762,7 @@ func NewDefault() Configuration {
defNginxStatusIpv4Whitelist = append(defNginxStatusIpv4Whitelist, "127.0.0.1")
defNginxStatusIpv6Whitelist = append(defNginxStatusIpv6Whitelist, "::1")
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{
AllowSnippetAnnotations: false,
@ -976,4 +976,5 @@ type GlobalExternalAuth struct {
AuthCacheDuration []string `json:"authCacheDuration"`
ProxySetHeaders map[string]string `json:"proxySetHeaders,omitempty"`
AlwaysSetCookie bool `json:"alwaysSetCookie,omitempty"`
DefaultEnable bool `json:"defaultEnable,omitempty"`
}