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 install
Create ice_creds_receiver/config.json 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/ice_creds_receiver/run.sh
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-reload
sudo systemctl start ice_creds_receiver.service
sudo systemctl enable ice_creds_receiver.service # will launch on boot