fix(sub2api): add JD01 account local proxy

This commit is contained in:
Codex
2026-06-30 10:38:03 +00:00
parent b1fda2a479
commit b073a1c52c
9 changed files with 395 additions and 29 deletions
+32
View File
@@ -124,6 +124,7 @@ export interface Sub2ApiTargetConfig {
hostDocker: Sub2ApiHostDockerConfig | null;
publicExposure: Sub2ApiPublicExposureConfig | null;
egressProxy: Sub2ApiEgressProxyConfig | null;
accountLocalProxy: Sub2ApiAccountLocalProxyConfig | null;
}
export interface Sub2ApiHostDockerConfig {
@@ -206,6 +207,24 @@ export interface Sub2ApiEgressProxyConfig {
healthProbeUrl: string;
}
export interface Sub2ApiAccountLocalProxyConfig {
enabled: boolean;
containerName: string;
secretName: string;
secretKey: string;
image: string;
imagePullPolicy: "Always" | "IfNotPresent" | "Never";
listenHost: "127.0.0.1";
listenPort: number;
sourceConfigRef: string;
sourceFingerprint: string;
sourceRef: string;
sourceKey: string;
sourceType: "master-shadowsocks";
masterShadowsocks: Sub2ApiMasterShadowsocksConfig;
healthProbeUrl: string;
}
export interface Sub2ApiMasterShadowsocksConfig {
serverHost: string;
serverPort: number;
@@ -275,6 +294,19 @@ export interface EgressProxySecretMaterial {
valuesPrinted: false;
}
export interface AccountLocalProxySecretMaterial {
sourceRef: string;
sourcePath: string;
secretName: string;
secretKey: string;
fingerprint: string;
sourceBytes: number;
selectedOutbound: "shadowsocks";
configJson: string;
proxyUrl: string;
valuesPrinted: false;
}
export interface EgressProxySubscriptionCandidateSummary {
sourceLine: number;
kind: SubscriptionNode["kind"] | "shadowsocks";