feat: add secure remote channel media

This commit is contained in:
lofyer
2026-08-09 20:33:35 +08:00
parent 6c891f3522
commit 66b098ae36
46 changed files with 4403 additions and 1594 deletions
@@ -0,0 +1,26 @@
const wechatSidecarEnvironmentNames = [
'SystemRoot',
'WINDIR',
'TEMP',
'TMP',
'TMPDIR',
'HOME',
'USERPROFILE',
'LANG',
'LC_ALL',
'LC_CTYPE'
] as const
export function buildWechatSidecarEnvironment(
source: NodeJS.ProcessEnv = process.env
): NodeJS.ProcessEnv {
const environment: NodeJS.ProcessEnv = {
NODE_TLS_REJECT_UNAUTHORIZED: '1'
}
for (const name of wechatSidecarEnvironmentNames) {
if (source[name] !== undefined) {
environment[name] = source[name]
}
}
return environment
}