fix(core): update

This commit is contained in:
Philipp Kunz 2019-01-19 03:21:27 +01:00
parent 64bcce9e23
commit 0de412b842

View File

@ -74,7 +74,7 @@ export let getBaseConfigString = () => {
export let getHostConfigString = (hostNameArg: string, destinationIpArg: string) => {
let hostConfig = plugins.smartstring.indent.normalize(`
upstream ${hostNameArg} {
keepalive 100;
keepalive 15;
server ${destinationIpArg};
}
@ -92,14 +92,13 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string)
server_name ${hostNameArg};
ssl_certificate ${paths.nginxHostDirPath}/${hostNameArg}.public.pem;
ssl_certificate_key ${paths.nginxHostDirPath}/${hostNameArg}.private.pem;
location / {
proxy_http_version 1.1;
proxy_set_header Host $http_host;
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 Connection "Upgrade";
proxy_set_header Proxy-Connection "Keep-Alive";
proxy_pass http://${hostNameArg};
}