Skip to content

Commit

Permalink
Enabled default list of ice servers
Browse files Browse the repository at this point in the history
  • Loading branch information
bananu7 committed Oct 3, 2022
1 parent 19c7231 commit 9cf4cf4
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import geckos, { Data } from '@geckos.io/server'
import geckos, { Data, iceServers } from '@geckos.io/server'
import http from 'http'
import express from 'express'
import cors from 'cors'
Expand Down Expand Up @@ -28,7 +28,7 @@ app.use(cors())
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: true }))
const server = http.createServer(app)
const io = geckos()
const io = geckos({ iceServers })

const matches : Match[] = [];

Expand Down
49 changes: 49 additions & 0 deletions packages/server/server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: rts
name: server
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: server
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 100%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: server
io.portainer.kubernetes.application.name: server
spec:
hostNetwork: true
containers:
- image: bananu7/rts:server-90487ee
imagePullPolicy: IfNotPresent
name: server
ports:
- name: http
containerPort: 9208
hostPort: 9208
protocol: TCP
resources:
limits:
cpu: 500m
memory: 256M
requests:
cpu: 500m
memory: 256M
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30

0 comments on commit 9cf4cf4

Please sign in to comment.