CT:Nextcloud, Updated nginx config and added CoTurn setup script
This commit is contained in:
23
CT-Files/nextcloud/Scripts/InstallCoTurn.sh
Normal file
23
CT-Files/nextcloud/Scripts/InstallCoTurn.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/ash
|
||||
#Set variables
|
||||
read -p "Enter nextcloud domain: " NxtDomain
|
||||
SEC=$(openssl rand -hex 32)
|
||||
#Install CoTurn
|
||||
apk add coturn
|
||||
#Setup config
|
||||
cat <<EOF >> /etc/coturn/turnserver.conf
|
||||
listening-port=3478
|
||||
fingerprint
|
||||
use-auth-secret
|
||||
static-auth-secret=$SEC
|
||||
realm=$NxtDomain
|
||||
total-quota=0
|
||||
bps-capacity=0
|
||||
stale-nonce
|
||||
no-multicast-peers
|
||||
EOF
|
||||
#Enableing and starting service
|
||||
rc-update add turnserver
|
||||
service turnserver start
|
||||
#Return sercret for talk
|
||||
echo "Nextcloud Talk secret: $SEC"
|
||||
Reference in New Issue
Block a user