Neel Chauhan 8792771cdc broker and proxy must not reject client offers with no ICE candidates | 1 månad sedan | |
---|---|---|
.. | ||
README.md | 3 år sedan | |
amp.go | 8 månader sedan | |
bridge-list.go | 2 månader sedan | |
bridge-list_test.go | 1 år sedan | |
broker.go | 2 månader sedan | |
http.go | 1 månad sedan | |
ipc.go | 2 månader sedan | |
metrics.go | 4 månader sedan | |
snowflake-broker_test.go | 1 månad sedan | |
snowflake-heap.go | 3 år sedan | |
sqs.go | 8 månader sedan | |
sqs_test.go | 2 månader sedan | |
test_bridgeList.txt | 3 månader sedan | |
test_geoip | 5 år sedan | |
test_geoip6 | 5 år sedan |
Table of Contents
This is the Broker component of Snowflake.
The Broker handles the rendezvous by matching Snowflake Clients with Proxies, and passing their WebRTC Session Descriptions (the "signaling" step). This allows Clients and Proxies to establish a Peer connection.
It is analogous to Flashproxy's Facilitator, but bidirectional and domain-fronted.
The Broker expects:
The server uses TLS by default.
There is a --disable-tls
option for testing purposes,
but you should use TLS in production.
The server automatically fetches certificates
from Let's Encrypt as needed.
Use the --acme-hostnames
option to tell the server
what hostnames it may request certificates for.
You can optionally provide a contact email address,
using the --acme-email
option,
so that Let's Encrypt can inform you of any problems.
In order to fetch certificates automatically,
the server needs to open an additional HTTP listener on port 80.
On Linux, you can use the setcap
program,
part of libcap2, to enable the broker to bind to low-numbered ports
without having to run as root:
setcap 'cap_net_bind_service=+ep' /usr/local/bin/broker
You can control the listening broker port with the --addr option. Port 443 is the default.
You'll need to provide the URL of the custom broker
to the client plugin using the --url $URL
flag.