fix(core): update
This commit is contained in:
parent
64bcce9e23
commit
0de412b842
@ -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};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user