mirror of
https://github.com/danbulant/slightlyComplicatedTicTacToe
synced 2026-06-19 22:41:49 +00:00
deploy progress
This commit is contained in:
parent
7240f0a539
commit
c9d5e0ed50
2 changed files with 24 additions and 1 deletions
|
|
@ -11,6 +11,21 @@ class FastEvent extends Event {
|
|||
const hosts: { urls: string, credential?: string, username?: string }[] = [
|
||||
{
|
||||
urls: "stun:openrelay.metered.ca:80",
|
||||
},
|
||||
{
|
||||
urls: "turn:openrelay.metered.ca:80",
|
||||
username: "openrelayproject",
|
||||
credential: "openrelayproject",
|
||||
},
|
||||
{
|
||||
urls: "turn:openrelay.metered.ca:443",
|
||||
username: "openrelayproject",
|
||||
credential: "openrelayproject",
|
||||
},
|
||||
{
|
||||
urls: "turn:openrelay.metered.ca:443?transport=tcp",
|
||||
username: "openrelayproject",
|
||||
credential: "openrelayproject",
|
||||
}
|
||||
]
|
||||
|
||||
|
|
@ -140,7 +155,8 @@ export class WebsocketConnection extends EventTarget {
|
|||
}
|
||||
|
||||
connect() {
|
||||
this.ws = new WebSocket("ws://" + location.hostname + ":8080/?name=" + encodeURIComponent(this.name));
|
||||
const host = location.hostname.includes("danbulant.eu") ? "multidie.danbulant.cloud" : location.hostname + ":8080";
|
||||
this.ws = new WebSocket("ws://" + host + "/?name=" + encodeURIComponent(this.name));
|
||||
this.ws.addEventListener("open", (e) => {
|
||||
console.log("WS ready");
|
||||
this.refreshList();
|
||||
|
|
|
|||
7
server/Dockerfile
Normal file
7
server/Dockerfile
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
FROM node:18
|
||||
|
||||
COPY . /app
|
||||
EXPOSE 8080
|
||||
WORKDIR /app
|
||||
RUN npm i
|
||||
CMD node /app/src
|
||||
Loading…
Reference in a new issue