From e5bd7e6da0ccc3895ca3ec32e97a121128c43cdd Mon Sep 17 00:00:00 2001 From: Bruno Oliveira da Silva <bruno@abstractj.org> Date: Wed, 12 Dec 2018 10:41:20 -0200 Subject: [PATCH] [KEYCLOAK-9070] Upgrade Travis CI to build gatekeeper targeting go 1.11 --- .travis.yml | 2 +- config.go | 56 ++++++++++++++++++++++++++--------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3a14c34..a8331a4 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 6418b5a..4855309 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, -- GitLab