Methods
Static load
- load(configPath?): Promise<FleetConfig>
Parameters
Optional configPath: string
getFleetConfig
- getFleetConfig(): {
id: string;
name: string;
maxAgents: number;
heartbeatInterval: number;
taskTimeout: number;
} Returns {
id: string;
name: string;
maxAgents: number;
heartbeatInterval: number;
taskTimeout: number;
}
id: string
name: string
maxAgents: number
heartbeatInterval: number
taskTimeout: number
getLoggingConfig
- getLoggingConfig(): {
level: string;
format: string;
outputs: string[];
} Returns {
level: string;
format: string;
outputs: string[];
}
level: string
format: string
outputs: string[]
getApiConfig
- getApiConfig(): {
port: number;
host: string;
cors: boolean;
rateLimit: {
windowMs: number;
max: number;
};
} Returns {
port: number;
host: string;
cors: boolean;
rateLimit: {
windowMs: number;
max: number;
};
}
port: number
host: string
cors: boolean
rateLimit: {
windowMs: number;
max: number;
}
windowMs: number
max: number
getSecurityConfig
- getSecurityConfig(): {
apiKey?: string;
jwtSecret?: string;
encryption: {
algorithm: string;
keyLength: number;
};
} Returns {
apiKey?: string;
jwtSecret?: string;
encryption: {
algorithm: string;
keyLength: number;
};
}
Optional apiKey?: string
Optional jwtSecret?: string
encryption: {
algorithm: string;
keyLength: number;
}
algorithm: string
keyLength: number
Load configuration from multiple sources