fix(core): update

This commit is contained in:
Philipp Kunz 2019-01-19 02:46:41 +01:00
parent b4ebdbae47
commit c3fabb6107

View File

@ -74,10 +74,14 @@ export let getBaseConfigString = () => {
export let getHostConfigString = (hostNameArg: string, destinationIpArg: string) => {
let hostConfig = plugins.smartstring.indent.normalize(`
upstream ${hostNameArg} {
keepalive 100;
server ${destinationIpArg};
}
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;
@ -91,7 +95,6 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string)
location / {
proxy_http_version 1.1;
keepalive 100;
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;