fix(core): update

This commit is contained in:
2019-08-20 22:30:31 +02:00
parent 5c4d5a4a85
commit 5438f83a40
22 changed files with 399 additions and 51 deletions

View File

@ -85,8 +85,12 @@ export let getBaseConfigString = (defaultProxy: string) => {
return baseConfig;
};
export let getHostConfigString = (hostNameArg: string, destinationIpArg: string, destinationPortArg = 80) => {
const hostConfig = plugins.smartstring.indent.normalize(`
export let getHostConfigString = (
hostNameArg: string,
destinationIpArg: string,
destinationPortArg = 80
) => {
const hostConfig = plugins.smartstring.indent.normalize(`
upstream ${hostNameArg} {
keepalive 100;
server ${destinationIpArg}:${destinationPortArg};