🏗️ refactor ServerService to enhance HTTP proxy configuration handling and include basic authentication support
This commit is contained in:
parent
e6992f4e4c
commit
50adc33aef
@ -107,8 +107,17 @@ remotePort = {{ $v.Second }}
|
|||||||
remotePort: remotePort
|
remotePort: remotePort
|
||||||
};
|
};
|
||||||
} else if (proxy.type === "http" || proxy.type === "https") {
|
} else if (proxy.type === "http" || proxy.type === "https") {
|
||||||
const { _id, status, ...frpProxyConfig } = proxy;
|
return {
|
||||||
return frpProxyConfig;
|
name: proxy.name,
|
||||||
|
type: proxy.type,
|
||||||
|
localIP: proxy.localIP,
|
||||||
|
localPort: parseInt(proxy.localPort),
|
||||||
|
customDomains: proxy.customDomains,
|
||||||
|
subdomain: proxy.subdomain,
|
||||||
|
...(proxy.basicAuth
|
||||||
|
? { httpUser: proxy.httpUser, httpPassword: proxy.httpPassword }
|
||||||
|
: {})
|
||||||
|
};
|
||||||
} else if (
|
} else if (
|
||||||
proxy.type === "stcp" ||
|
proxy.type === "stcp" ||
|
||||||
proxy.type === "xtcp" ||
|
proxy.type === "xtcp" ||
|
||||||
|
Loading…
Reference in New Issue
Block a user