fix(core): update
This commit is contained in:
		| @@ -71,7 +71,7 @@ export let getBaseConfigString = () => { | ||||
|   return baseConfig; | ||||
| }; | ||||
|  | ||||
| export let getHostConfigString = (hostNameArg: string, destinationIpArg: string, portArg = 80) => { | ||||
| export let getHostConfigString = (hostNameArg: string, destinationIpArg: string, destinationPortArg = 80) => { | ||||
|   const hostConfig = plugins.smartstring.indent.normalize(` | ||||
| 		upstream ${hostNameArg} { | ||||
| 			keepalive 100; | ||||
| @@ -101,7 +101,7 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string, | ||||
| 				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_pass              http://${hostNameArg}:${portArg}; | ||||
| 				proxy_pass              http://${hostNameArg}:${destinationPortArg}; | ||||
| 			} | ||||
| 		} | ||||
| 	`); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user