WebRTC 사용에 있어 Openvidu-Server를 구축하여 사용
# 도커 설치 방법
$ sudo apt-get update
$ sudo apt-get install \\
apt-transport-https \\
ca-certificates \\
curl \\
gnupg \\
lsb-release
$ sudo -fsSL <https://download.docker.com/linux/ubuntu/gpg> | sudo gpg --dearmor -o
/usr/share/keyrings/docker-archive-keyring.gpg
$ echo \\
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg]
<https://download.docker.com/linux/ubuntu> \\
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
$ sudo curl -L "<https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$>(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
22 TCP
, 80 TCP
, 443 TCP
, 3478 TCP+UDP
, 40000~57000 TCP+UDP
, 57001~65535 TCP+UDP
$ cd /opt # openvidu는 /opt 디렉토리에 설치되는게 권장됩니다!
$ sudo curl <https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install_openvidu_latest.sh> | sudo bash
$ sudo vi .env
DOMAIN_OR_PUBLIC_IP=i7b303.p.ssafy.io
OPENVIDU_SECRET=secosi
CERTIFICATE_TYPE=letsencrypt
[email protected]
HTTP_PORT=8442
HTTPS_PORT=8443
# HTTP_PORT와 HTTPS_PORT는 letsencrypt 방식의 키를 발급 받기 전까진 기본 포트인 80, 443을 사용해야 합니다!
# 키를 발급받고 난 후부터는 포트 변경해도 무방합니다!