From 0fe7d586cf8874b72825c5f5f3cfa24ecb99c5d2 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 22 Jan 2019 22:07:58 +0100 Subject: [PATCH] fix(core): update --- ts/smartnginx.snippets.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ts/smartnginx.snippets.ts b/ts/smartnginx.snippets.ts index b253bcd..7f390f3 100644 --- a/ts/smartnginx.snippets.ts +++ b/ts/smartnginx.snippets.ts @@ -78,6 +78,15 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string, server ${destinationIpArg}:${destinationPortArg}; } + server { + # The keepalive parameter sets the maximum number of idle keepalive connections + # to upstream servers that are preserved in the cache of each worker process. When + # this number is exceeded, the least recently used connections are closed. + listen *:80 ; + server_name ${hostNameArg}; + rewrite ^ https://${hostNameArg}$request_uri? permanent; + } + server { listen *:443 ssl; server_name ${hostNameArg};