partey_workadventure/back/src/Enum/EnvironmentVariable.ts

20 lines
789 B
TypeScript
Raw Normal View History

const SECRET_KEY = process.env.SECRET_KEY || "THECODINGMACHINE_SECRET_KEY";
const URL_ROOM_STARTED = "/Floor0/floor0.json";
const MINIMUM_DISTANCE = process.env.MINIMUM_DISTANCE ? Number(process.env.MINIMUM_DISTANCE) : 64;
const GROUP_RADIUS = process.env.GROUP_RADIUS ? Number(process.env.GROUP_RADIUS) : 48;
const ALLOW_ARTILLERY = process.env.ALLOW_ARTILLERY ? process.env.ALLOW_ARTILLERY == 'true' : false;
2020-09-17 18:08:20 +02:00
const ADMIN_API_URL = process.env.ADMIN_API_URL || null;
const ADMIN_API_TOKEN = process.env.ADMIN_API_TOKEN || null;
2020-09-30 14:42:35 +02:00
const CPU_OVERHEAT_THRESHOLD = Number(process.env.CPU_OVERHEAT_THRESHOLD) || 80;
export {
SECRET_KEY,
URL_ROOM_STARTED,
MINIMUM_DISTANCE,
2020-09-17 18:08:20 +02:00
ADMIN_API_URL,
ADMIN_API_TOKEN,
GROUP_RADIUS,
2020-09-17 18:08:20 +02:00
ALLOW_ARTILLERY,
2020-09-30 14:42:35 +02:00
CPU_OVERHEAT_THRESHOLD,
}