Receives and stores credentials sent from the Cloud Bridge used by the Coturn server
Follow instructions from bun.sh
Last tested 1.2.18
git clone git@github.com:PhantomCybernetics/ice_creds_receiver.git
cd ice_creds_receiver
bun installCreate ice_creds_receiver/config.jsonc and paste:
Note that the port specified here must be open to inbound TCP traffic, on top of all the ports required by the coturn server.
sudo vim /etc/systemd/system/ice_creds_receiver.service... and paste:
[Unit]
Description=phntm ice_creds_receiver service
After=network.target
[Service]
ExecStart=/home/ubuntu/.bun/bin/bun ./credentials-receiver.ts
Restart=always
User=root
Environment=NODE_ENV=production
WorkingDirectory=/home/ubuntu/ice_creds_receiver/
StandardOutput=append:/var/log/ice_creds_receiver.log
StandardError=append:/var/log/ice_creds_receiver.err.log
[Install]
WantedBy=multi-user.target
Reload systemctl daemon
sudo systemctl daemon-reloadsudo systemctl start ice_creds_receiver.service
sudo systemctl enable ice_creds_receiver.service # will launch on boot
{ "dbFile": "/var/lib/turn/turndb", // must match coturn's config "realm": "phntm.io", // must match coturn's config "port": 1234, // must match ICE_SYNC.port in Cloud Bridge's config "secret": "SYNC_PASS", // must match ICE_SYNC.secret in Cloud Bridge's config "ssl": { "private": "/your_ssl_dir/private.pem", "public": "/your_ssl_dir/fullchain.crt", }, }