SpaceNinjaServer/src/services/configService.ts

27 lines
700 B
TypeScript

import rawConfig from "@/config.json";
interface IConfig {
mongodbUrl: string;
logger: ILoggerConfig;
myAddress: string;
httpPort?: number;
httpsPort?: number;
autoCreateAccount?: boolean;
skipStoryModeChoice?: boolean;
skipTutorial?: boolean;
unlockAllScans?: boolean;
unlockAllMissions?: boolean;
unlockAllQuests?: boolean;
infiniteResources?: boolean;
unlockallShipFeatures?: boolean;
unlockAllShipDecorations?: boolean;
unlockAllFlavourItems?: boolean;
}
interface ILoggerConfig {
files: boolean;
level: string; // "fatal" | "error" | "warn" | "info" | "http" | "debug" | "trace";
}
export const config: IConfig = rawConfig;