2023-04-10 23:28:28 +02:00
|
|
|
const ISPROD = window.location.protocol == 'https:'
|
|
|
|
const JITSI_DOMAIN = 'thisisnotajitsi.filefighter.de'
|
|
|
|
const USE_REMOTE_BACKEND = true
|
2023-04-09 10:36:52 +02:00
|
|
|
const getWebsocketUrl = () => {
|
2023-04-10 23:28:28 +02:00
|
|
|
if (ISPROD) return 'wss://' + window.location.host + '/ws'
|
|
|
|
if (USE_REMOTE_BACKEND) return 'wss://' + 'discord.filefighter.de/ws'
|
|
|
|
return 'ws://' + 'localhost:9160/ws'
|
2023-04-09 10:36:52 +02:00
|
|
|
}
|
2023-04-10 23:28:28 +02:00
|
|
|
const WEBSOCKET_URL = getWebsocketUrl()
|
2023-01-07 19:06:04 +01:00
|
|
|
|
2023-04-10 23:28:28 +02:00
|
|
|
const USER_COOKIE_NAME = 'jitsi-rooms-user'
|
2023-02-07 20:31:07 +01:00
|
|
|
|
2023-04-10 23:28:28 +02:00
|
|
|
export { JITSI_DOMAIN, WEBSOCKET_URL, USER_COOKIE_NAME }
|