diff --git a/internal/mode/static/nginx/config/upstreams.go b/internal/mode/static/nginx/config/upstreams.go index 915001ff6..7722f6f0a 100644 --- a/internal/mode/static/nginx/config/upstreams.go +++ b/internal/mode/static/nginx/config/upstreams.go @@ -169,15 +169,10 @@ func (g GeneratorImpl) createUpstream( } return http.Upstream{ - Name: up.Name, - ZoneSize: zoneSize, - Servers: upstreamServers, - KeepAlive: http.UpstreamKeepAlive{ - Connections: upstreamPolicySettings.KeepAlive.Connections, - Requests: upstreamPolicySettings.KeepAlive.Requests, - Time: upstreamPolicySettings.KeepAlive.Time, - Timeout: upstreamPolicySettings.KeepAlive.Timeout, - }, + Name: up.Name, + ZoneSize: zoneSize, + Servers: upstreamServers, + KeepAlive: upstreamPolicySettings.KeepAlive, } }