原因是安裝好nextcloud的時候才發現線上會議通話時peer to peer的端口對接不上。一直處於連線中的狀態。開始當工人除了翻nextcloud提供的技術文件外,也看了很多前輩的分享。
以下大致上總結幫助自己記憶已面未來要再架設或維護時忘記幾個大重點。
sudo mkdir /etc/coturn
cd /etc/coturn
sudo cp /etc/letsencrypt/live/<domain>/cert.pem /etc/coturn
sudo cp /etc/letsencrypt/live/<domain>/privkey.pem /etc/coturn
sudo cp /etc/turnserver.conf /etc/turnserver.conf.bak
sudo nano /etc/turnserver.conf
listening-port=3478
tls-listening-port=5349
alt-listening-port=3479
alt-tls-listening-port=5350
external-ip=<your public ip> # 這裡填上你的公用IP
fingerprint
lt-cred-mech
server-name=<domain> # 這裡填上之前申請的域名
user=<turnadmin>:<turnpwd> # 這裡填上你要使用的coturn帳號:密碼
realm=<domain> # 這裡填上之前申請的域名
cert=/etc/coturn/cert.pem
pkey=/etc/coturn/privkey.pem
cipher-list="DEFAULT"
log-file=/var/log/turnserver.log
simple-log
verbose
sudo systemctl start coturn
sudo systemctl status coturn
coturn.service - coturn
Loaded: loaded (/usr/lib/systemd/system/coturn.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2020-05-30 09:46:00 UTC; 2 weeks 3 days ago
Docs: man:coturn(1)
man:turnadmin(1)
man:turnserver(1)
Process: 27244 ExecStart=/usr/bin/turnserver -o -c /etc/coturn/turnserver.conf --pidfile /run/coturn/turnserver.pid (code=exited, status=0/SUCCESS)
Main PID: 27245 (turnserver)
CGroup: /system.slice/coturn.service
└─27245 /usr/bin/turnserver -o -c /etc/coturn/turnserver.conf --pi…