mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 23:11:29 -04:00
Initialize snowflake instance with a config
This commit is contained in:
parent
edbbea1d03
commit
2d8a1690ba
11 changed files with 125 additions and 113 deletions
26
proxy/config.coffee
Normal file
26
proxy/config.coffee
Normal file
|
@ -0,0 +1,26 @@
|
|||
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'] }
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue