diff --git a/.travis.yml b/.travis.yml index 3a14c34ab978884721804c4767ce59b0b1eefe9c..a8331a453512218376476b580597f2f6ee33a8c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: go go: -- "1.10.2" +- "1.11.x" install: - go get -u github.com/golang/dep/cmd/dep - go get github.com/mattn/goveralls diff --git a/config.go b/config.go index 6418b5ad39248388706fafce15f34e9aa739ab44..48553098a7d0a0a8478de1e57c1069527899f319 100644 --- a/config.go +++ b/config.go @@ -34,34 +34,34 @@ func newDefaultConfig() *Config { hostnames = append(hostnames, []string{"localhost", "127.0.0.1"}...) return &Config{ - AccessTokenDuration: time.Duration(720) * time.Hour, - CookieAccessName: "kc-access", - CookieRefreshName: "kc-state", - EnableAuthorizationCookies: true, - EnableAuthorizationHeader: true, - EnableDefaultDeny: true, - EnableSessionCookies: true, - EnableTokenHeader: true, - HTTPOnlyCookie: true, - Headers: make(map[string]string), - LetsEncryptCacheDir: "./cache/", - MatchClaims: make(map[string]string), - MaxIdleConns: 100, - MaxIdleConnsPerHost: 50, - OAuthURI: "/oauth", - OpenIDProviderTimeout: 30 * time.Second, - PreserveHost: false, - SelfSignedTLSExpiration: 3 * time.Hour, - SelfSignedTLSHostnames: hostnames, - RequestIDHeader: "X-Request-ID", - ResponseHeaders: make(map[string]string), - SecureCookie: true, - ServerIdleTimeout: 120 * time.Second, - ServerReadTimeout: 10 * time.Second, - ServerWriteTimeout: 10 * time.Second, - SkipOpenIDProviderTLSVerify: false, - SkipUpstreamTLSVerify: true, - Tags: make(map[string]string, 0), + AccessTokenDuration: time.Duration(720) * time.Hour, + CookieAccessName: "kc-access", + CookieRefreshName: "kc-state", + EnableAuthorizationCookies: true, + EnableAuthorizationHeader: true, + EnableDefaultDeny: true, + EnableSessionCookies: true, + EnableTokenHeader: true, + HTTPOnlyCookie: true, + Headers: make(map[string]string), + LetsEncryptCacheDir: "./cache/", + MatchClaims: make(map[string]string), + MaxIdleConns: 100, + MaxIdleConnsPerHost: 50, + OAuthURI: "/oauth", + OpenIDProviderTimeout: 30 * time.Second, + PreserveHost: false, + SelfSignedTLSExpiration: 3 * time.Hour, + SelfSignedTLSHostnames: hostnames, + RequestIDHeader: "X-Request-ID", + ResponseHeaders: make(map[string]string), + SecureCookie: true, + ServerIdleTimeout: 120 * time.Second, + ServerReadTimeout: 10 * time.Second, + ServerWriteTimeout: 10 * time.Second, + SkipOpenIDProviderTLSVerify: false, + SkipUpstreamTLSVerify: true, + Tags: make(map[string]string, 0), UpstreamExpectContinueTimeout: 10 * time.Second, UpstreamKeepaliveTimeout: 10 * time.Second, UpstreamKeepalives: true,