From 97b5678fe4951052f2109160c70108140fda5831 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 19 Jan 2019 10:59:24 +0100 Subject: [PATCH] fix(core): update --- ts/smartnginx.snippets.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ts/smartnginx.snippets.ts b/ts/smartnginx.snippets.ts index 15784f1..b2dd5e5 100644 --- a/ts/smartnginx.snippets.ts +++ b/ts/smartnginx.snippets.ts @@ -74,7 +74,7 @@ export let getBaseConfigString = () => { export let getHostConfigString = (hostNameArg: string, destinationIpArg: string) => { let hostConfig = plugins.smartstring.indent.normalize(` upstream ${hostNameArg} { - keepalive 15; + keepalive 100; server ${destinationIpArg}; } @@ -98,8 +98,6 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string) proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Connection "Upgrade"; - proxy_set_header Proxy-Connection "Keep-Alive"; proxy_pass http://${hostNameArg}; } }