MCPcopy
hub / github.com/MetaCubeX/metacubexd / ServerEnv

Interface ServerEnv

apps/server/lib/supervisor.ts:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4/** Parsed server runtime config, sourced entirely from env. */
5export interface ServerEnv {
6 controlPort: number
7 clashApiPort: number
8 mixedPort: number
9 dataDir: string
10 mihomoBin: string
11 controlToken: string
12 clashSecret: string
13}
14
15function int(value: string | undefined, fallback: number): number {
16 const n = value == null ? Number.NaN : Number.parseInt(value, 10)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected