Compare commits

...

2 Commits

Author SHA1 Message Date
Никита Круглицкий
b24a30314f #2 update
All checks were successful
Deploy / deploy (push) Successful in 13s
2025-10-02 03:47:50 +06:00
Никита Круглицкий
aa257565fb #2 update 2025-10-02 03:47:30 +06:00
2 changed files with 11 additions and 3 deletions

View File

@ -35,7 +35,6 @@ jobs:
docker run -d \
--name chad-server \
--network traefik \
-p 20000-40000:20000-40000/udp \
--label "traefik.enable=true" \
--label "traefik.http.routers.chad-server.rule=Host(\`api.koptilnya.xyz\`) && PathPrefix(\`/chad\`)" \
--label "traefik.http.routers.chad-server.entrypoints=websecure" \

View File

@ -55,9 +55,18 @@ io.on("connection", (socket) => {
socket.on("createTransport", async (cb) => {
try {
const transport = await router.createWebRtcTransport({
listenIps: [{ ip: "0.0.0.0", announcedIp: "91.144.171.182" }],
listenInfos: [
{
protocol: 'udp',
ip: "0.0.0.0",
announcedIp: "91.144.171.182",
portRange: {
min: 40000,
max: 40100
}
}
],
enableUdp: true,
enableTcp: true,
preferUdp: true,
});