fix(core): update
This commit is contained in:
parent
01f0dc6b20
commit
893a2e2709
@ -72,7 +72,7 @@ export let getBaseConfigString = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export let getHostConfigString = (hostNameArg: string, destinationIpArg: string, destinationPortArg = 80) => {
|
export let getHostConfigString = (hostNameArg: string, destinationIpArg: string, destinationPortArg = 80) => {
|
||||||
let uniqueString = plugins.smartunique.shortId()
|
const uniqueString = plugins.smartunique.shortId();
|
||||||
const hostConfig = plugins.smartstring.indent.normalize(`
|
const hostConfig = plugins.smartstring.indent.normalize(`
|
||||||
upstream ${uniqueString} {
|
upstream ${uniqueString} {
|
||||||
keepalive 100;
|
keepalive 100;
|
||||||
@ -96,7 +96,7 @@ export let getHostConfigString = (hostNameArg: string, destinationIpArg: string,
|
|||||||
location / {
|
location / {
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host:$server_port;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
Loading…
Reference in New Issue
Block a user