partey_workadventure/front/src/Enum/EnvironmentVariable.ts

35 lines
1.5 KiB
TypeScript
Raw Normal View History

const DEBUG_MODE: boolean = process.env.DEBUG_MODE == "true";
const START_ROOM_URL : string = process.env.START_ROOM_URL || '/_/global/maps.workadventure.localhost/Floor0/floor0.json';
// For compatibility reasons with older versions, API_URL is the old host name of PUSHER_URL
const PUSHER_URL = process.env.PUSHER_URL || (process.env.API_URL ? '//'+process.env.API_URL : "//pusher.workadventure.localhost");
const UPLOADER_URL = process.env.UPLOADER_URL || '//uploader.workadventure.localhost';
const ADMIN_URL = process.env.ADMIN_URL || "//workadventure.localhost";
const STUN_SERVER: string = process.env.STUN_SERVER || "stun:stun.l.google.com:19302";
const TURN_SERVER: string = process.env.TURN_SERVER || "";
const TURN_USER: string = process.env.TURN_USER || '';
const TURN_PASSWORD: string = process.env.TURN_PASSWORD || '';
2020-08-31 12:18:00 +02:00
const JITSI_URL : string|undefined = (process.env.JITSI_URL === '') ? undefined : process.env.JITSI_URL;
const JITSI_PRIVATE_MODE : boolean = process.env.JITSI_PRIVATE_MODE == "true";
2020-11-14 14:04:11 +01:00
const RESOLUTION = 2;
2020-04-27 18:12:36 +02:00
const ZOOM_LEVEL = 1/*3/4*/;
const POSITION_DELAY = 200; // Wait 200ms between sending position events
const MAX_EXTRAPOLATION_TIME = 100; // Extrapolate a maximum of 250ms if no new movement is sent by the player
export {
2020-04-13 19:40:10 +02:00
DEBUG_MODE,
START_ROOM_URL,
PUSHER_URL,
UPLOADER_URL,
2020-10-24 13:37:33 +02:00
ADMIN_URL,
2020-04-07 20:41:35 +02:00
RESOLUTION,
ZOOM_LEVEL,
POSITION_DELAY,
2020-08-31 12:18:00 +02:00
MAX_EXTRAPOLATION_TIME,
STUN_SERVER,
2020-08-28 13:52:25 +02:00
TURN_SERVER,
TURN_USER,
TURN_PASSWORD,
JITSI_URL,
JITSI_PRIVATE_MODE
2020-04-27 18:12:36 +02:00
}