snowflake/proxy/config.coffee
Arlo Breault 359600ddc5 Fix pcConfig from compiling to a global
But note that maybe we should be constructing a new PCConfig each time
Config is instantiated, rather than sharing it on the prototype.
2019-07-10 10:39:12 +02:00

25 lines
578 B
CoffeeScript

class Config
brokerUrl: 'snowflake-broker.bamsoftware.com'
relayAddr:
host: 'snowflake.bamsoftware.com'
port: '443'
# Original non-wss relay:
# host: '192.81.135.242'
# port: 9902
cookieName: "snowflake-allow"
# Bytes per second. Set to undefined to disable limit.
rateLimitBytes: undefined
minRateLimit: 10 * 1024
rateLimitHistory: 5.0
defaultBrokerPollInterval: 5.0 * 1000
maxNumClients: 1
connectionsPerClient: 1
# TODO: Different ICE servers.
pcConfig:
iceServers: [
{ urls: ['stun:stun.l.google.com:19302'] }
]