7d0b573d37
- OPID_PROFILE_SCREEN_PROVIDER is a variable to show profile of user connected. You can defined your own provider or use classic provider of WorkAdventure. - OpenIdProfileController with url "/profile" get user data and create simple html to show user informations. This url will be called with params 'accessToken' - If you define your custom profile url, it will be called with param 'accessToken'. accessToken is token to access at user informations in your OpenId provider.
35 lines
1.8 KiB
TypeScript
35 lines
1.8 KiB
TypeScript
const SECRET_KEY = process.env.SECRET_KEY || "THECODINGMACHINE_SECRET_KEY";
|
|
const ALLOW_ARTILLERY = process.env.ALLOW_ARTILLERY ? process.env.ALLOW_ARTILLERY == "true" : false;
|
|
const API_URL = process.env.API_URL || "";
|
|
const ADMIN_API_URL = process.env.ADMIN_API_URL || "";
|
|
const ADMIN_URL = process.env.ADMIN_URL || "";
|
|
const ADMIN_API_TOKEN = process.env.ADMIN_API_TOKEN || "myapitoken";
|
|
const CPU_OVERHEAT_THRESHOLD = Number(process.env.CPU_OVERHEAT_THRESHOLD) || 80;
|
|
const JITSI_URL: string | undefined = process.env.JITSI_URL === "" ? undefined : process.env.JITSI_URL;
|
|
const JITSI_ISS = process.env.JITSI_ISS || "";
|
|
const SECRET_JITSI_KEY = process.env.SECRET_JITSI_KEY || "";
|
|
const PUSHER_HTTP_PORT = parseInt(process.env.PUSHER_HTTP_PORT || "8080") || 8080;
|
|
export const SOCKET_IDLE_TIMER = parseInt(process.env.SOCKET_IDLE_TIMER as string) || 120; // maximum time (in second) without activity before a socket is closed. Should be greater than 60 seconds in order to cope for Chrome intensive throttling (https://developer.chrome.com/blog/timer-throttling-in-chrome-88/#intensive-throttling)
|
|
|
|
export const FRONT_URL = process.env.FRONT_URL || "http://localhost";
|
|
export const OPID_CLIENT_ID = process.env.OPID_CLIENT_ID || "";
|
|
export const OPID_CLIENT_SECRET = process.env.OPID_CLIENT_SECRET || "";
|
|
export const OPID_CLIENT_ISSUER = process.env.OPID_CLIENT_ISSUER || "";
|
|
export const OPID_CLIENT_REDIREC_URL = process.env.OPID_CLIENT_REDIREC_URL || FRONT_URL + "/jwt";
|
|
export const OPID_PROFILE_SCREEN_PROVIDER = process.env.OPID_PROFILE_SCREEN_PROVIDER || ADMIN_URL + "/profile";
|
|
export const DISABLE_ANONYMOUS = process.env.DISABLE_ANONYMOUS || false;
|
|
|
|
export {
|
|
SECRET_KEY,
|
|
API_URL,
|
|
ADMIN_API_URL,
|
|
ADMIN_URL,
|
|
ADMIN_API_TOKEN,
|
|
ALLOW_ARTILLERY,
|
|
CPU_OVERHEAT_THRESHOLD,
|
|
JITSI_URL,
|
|
JITSI_ISS,
|
|
SECRET_JITSI_KEY,
|
|
PUSHER_HTTP_PORT,
|
|
};
|