migration

This commit is contained in:
FileFighter ServiceUser 2025-01-19 11:27:42 +01:00
parent dcaeca9634
commit 6e285076d4
2 changed files with 8 additions and 7 deletions

View file

@ -1,11 +1,13 @@
{ pkgs ? import <nixpkgs> { } }:
{
pkgs ? import <nixpkgs> { },
}:
pkgs.buildNpmPackage {
pname = "my-node-app"; # Name of your package
version = "1.0.0"; # Your app version
pname = "jitsi-rooms-backendd";
version = "1.0.0";
# Source files (usually the current directory)
src = pkgs.lib.cleanSource ../frontend;
src = pkgs.lib.cleanSource ./.;
# Optionally, you can provide a package-lock.json or yarn.lock file
# This ensures dependencies are installed reproducibly.
@ -15,7 +17,6 @@ pkgs.buildNpmPackage {
nodejs = pkgs.nodejs-18_x;
npmDepsHash = "sha256-n9SpPPRvu92RwNPDKZ3f1Splbux2IVGhSazJ4DM2IrA=";
# Add any additional arguments for the build process
buildInputs = [ ];

View file

@ -1,9 +1,9 @@
const ISPROD = window.location.protocol == 'https:'
const JITSI_DOMAIN = 'thisisnotajitsi.filefighter.de'
const JITSI_DOMAIN = 'meet.filefighter.de'
const USE_REMOTE_BACKEND = true
const getWebsocketUrl = () => {
if (ISPROD) return 'wss://' + window.location.host + '/ws'
if (USE_REMOTE_BACKEND) return 'wss://' + 'discord.filefighter.de/ws'
if (USE_REMOTE_BACKEND) return 'wss://' + 'treffen.filefighter.de/ws'
return 'ws://' + 'localhost:9160/ws'
}
const WEBSOCKET_URL = getWebsocketUrl()