feat: add egress proxy traffic sampling
This commit is contained in:
@@ -327,6 +327,7 @@ export function platformInfraHelp(): unknown {
|
||||
"bun scripts/cli.ts platform-infra sub2api codex-pool trace --request-id <requestId>",
|
||||
"bun scripts/cli.ts platform-infra sub2api codex-pool sentinel-image status",
|
||||
"bun scripts/cli.ts platform-infra sub2api codex-pool sentinel-probe --account unidesk-codex-hy --confirm",
|
||||
"bun scripts/cli.ts platform-infra egress-proxy traffic --target D601 --sample-seconds 15",
|
||||
"bun scripts/cli.ts platform-infra langbot plan [--target G14]",
|
||||
"bun scripts/cli.ts platform-infra langbot apply [--target G14] --confirm",
|
||||
"bun scripts/cli.ts platform-infra langbot status [--target G14] [--full|--raw]",
|
||||
|
||||
@@ -170,6 +170,11 @@ export function renderSingBoxMasterShadowsocksConfig(proxy: Sub2ApiEgressProxyCo
|
||||
export function renderSingBoxProxyConfig(outbound: Record<string, unknown>, proxy: Sub2ApiEgressProxyConfig): string {
|
||||
const config = stripUndefined({
|
||||
log: { level: "info", timestamp: true },
|
||||
experimental: {
|
||||
clash_api: {
|
||||
external_controller: "127.0.0.1:9090",
|
||||
},
|
||||
},
|
||||
inbounds: [
|
||||
{
|
||||
type: "mixed",
|
||||
|
||||
Reference in New Issue
Block a user