A file transfer tool that can be used in the browser webrtc p2p
npm install
make
sudo make install
sudo systemctl start filegogo
cp conf/config.json .
npm install
# server
make run
# frontend
npm run dev
{
"wsUrl": "ws://localhost:8033/topic/",
"iceServers": [
{
"urls": "stun:stun.services.mozilla.com",
"username": "[email protected]",
"credential": "webrtcdemo"
}, {
"urls": ["stun:stun.example.com", "stun:stun-1.example.com"]
}
]
}
iceServer Use Other
apt install coturn
# /etc/turnserver.conf
listening-ip={YOUR_IP_ADDRESS}
relay-ip={YOUR_IP_ADDRESS}
# Public ip
# if aws, aliyun
external-ip={YOUR_IP_ADDRESS}
fingerprint
lt-cred-mech
user=filegogo:filegogo
realm=filegogo