diff --git a/ts/smartnginx.snippets.ts b/ts/smartnginx.snippets.ts index dd869af..d2a3b19 100644 --- a/ts/smartnginx.snippets.ts +++ b/ts/smartnginx.snippets.ts @@ -99,6 +99,8 @@ 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 "Keep-Alive"; + proxy_set_header Proxy-Connection "Keep-Alive"; proxy_pass http://${hostNameArg}; } }