onion domain for voip
This commit is contained in:
parent
da57f0b292
commit
235cdcc9da
|
@ -354,6 +354,7 @@ VOIP_SERVER_PASSWORD=
|
|||
VOIP_PORT=64738
|
||||
SIP_SERVER_PASSWORD=
|
||||
SIP_PORT=5060
|
||||
VOIP_ONION_PORT=8095
|
||||
|
||||
# Location of VoIP database and configuration
|
||||
VOIP_DATABASE="mumble-server.sqlite"
|
||||
|
@ -9499,7 +9500,16 @@ function install_voip {
|
|||
sed -i 's|#imagemessagelength=.*|imagemessagelength=131072|g' /etc/mumble-server.ini
|
||||
sed -i 's|#allowhtml=.*|allowhtml=False|g' /etc/mumble-server.ini
|
||||
sed -i 's|allowhtml=.*|allowhtml=False|g' /etc/mumble-server.ini
|
||||
sed -i "s|port=.*|port=$VOIP_PORT|g" /etc/mumble-server.ini
|
||||
|
||||
VOIP_ONION_HOSTNAME=$(add_onion_service voip ${VOIP_PORT} ${VOIP_ONION_PORT})
|
||||
if [[ $ONION_ONLY != "no" ]]; then
|
||||
sed -i "s|port=.*|port=${VOIP_ONION_PORT}|g" /etc/mumble-server.ini
|
||||
else
|
||||
sed -i "s|port=.*|port=${VOIP_PORT}|g" /etc/mumble-server.ini
|
||||
fi
|
||||
if ! grep -q $"VoIP onion domain" $COMPLETION_FILE; then
|
||||
echo "VoIP onion domain:$VOIP_ONION_HOSTNAME" >> $COMPLETION_FILE
|
||||
fi
|
||||
|
||||
systemctl restart mumble-server
|
||||
|
||||
|
@ -9508,6 +9518,7 @@ function install_voip {
|
|||
echo '' >> /home/$MY_USERNAME/README
|
||||
echo $'VoIP Server' >> /home/$MY_USERNAME/README
|
||||
echo '===========' >> /home/$MY_USERNAME/README
|
||||
echo $"VoIP onion domain:$VOIP_ONION_HOSTNAME" >> /home/$MY_USERNAME/README
|
||||
echo $'VoIP server username: mumble-server' >> /home/$MY_USERNAME/README
|
||||
if [[ $SYSTEM_TYPE != "VARIANT_MESH" ]]; then
|
||||
echo $"VoIP server password: $VOIP_SERVER_PASSWORD" >> /home/$MY_USERNAME/README
|
||||
|
|
Loading…
Reference in New Issue