partey_workadventure/front/src/Enum/EnvironmentVariable.ts

24 lines
984 B
TypeScript
Raw Normal View History

const DEBUG_MODE: boolean = process.env.DEBUG_MODE == "true";
2020-06-25 11:56:11 +02:00
const API_URL = (typeof(window) !== 'undefined' ? window.location.protocol : 'http:') + '//' + (process.env.API_URL || "api.workadventure.localhost");
2020-08-28 13:52:25 +02:00
const TURN_SERVER: string = process.env.TURN_SERVER || "turn:numb.viagenie.ca";
const TURN_USER: string = process.env.TURN_USER || 'g.parant@thecodingmachine.com';
const TURN_PASSWORD: string = process.env.TURN_PASSWORD || 'itcugcOHxle9Acqi$';
2020-08-31 12:18:00 +02:00
const JITSI_URL : string|undefined = (process.env.JITSI_URL === '') ? undefined : process.env.JITSI_URL;
2020-05-04 01:48:14 +02:00
const RESOLUTION = 3;
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,
API_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,
2020-08-28 13:52:25 +02:00
TURN_SERVER,
TURN_USER,
TURN_PASSWORD,
2020-08-31 12:18:00 +02:00
JITSI_URL
2020-04-27 18:12:36 +02:00
}