changed ports

This commit is contained in:
2025-01-12 22:38:46 +01:00
parent be6a836b99
commit 558c434539
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -6,5 +6,5 @@ RUN npm install
COPY . . COPY . .
EXPOSE 8080 EXPOSE 3001
CMD ["node", "./src/OSCWebServer/server.js"] CMD ["node", "./src/OSCWebServer/server.js"]
+1 -1
View File
@@ -11,4 +11,4 @@ services:
context: . context: .
dockerfile: Dockerfile.server dockerfile: Dockerfile.server
ports: ports:
- "8080:8080" - "3001:3001"
+1 -1
View File
@@ -8,7 +8,7 @@ import WebSocket from "ws";
const x32IP = process.env.X32_IP; const x32IP = process.env.X32_IP;
const x32Port = Number(process.env.X32_PORT); const x32Port = Number(process.env.X32_PORT);
const OSC_WEB_SOCKET_PORT = 8080; const OSC_WEB_SOCKET_PORT = 3001;
// OSC Setup // OSC Setup
const udpPort = new osc.UDPPort({ const udpPort = new osc.UDPPort({
+3 -1
View File
@@ -8,12 +8,14 @@ import MainMix from "@/app/components/MainMix";
// initialize global websocket connection // initialize global websocket connection
import {initConnection} from "@/app/lib/x32CommunicationManager"; import {initConnection} from "@/app/lib/x32CommunicationManager";
const WEBSOCKET_PORT = 3001;
const Page = () => { const Page = () => {
const [appConfig, setAppConfig] = useState(null); const [appConfig, setAppConfig] = useState(null);
const [activeTab, setActiveTab] = useState("mainMix"); const [activeTab, setActiveTab] = useState("mainMix");
useEffect(() => { useEffect(() => {
initConnection(`ws://${window.location.hostname}:8080`); initConnection(`ws://${window.location.hostname}:${WEBSOCKET_PORT}`);
fetchConfig().then(config => { fetchConfig().then(config => {
setAppConfig(config); setAppConfig(config);
}); });