Browse Source

properly formatting the console commands

master
rra 4 years ago
parent
commit
d562bf6b10
  1. 28
      content/instant-messaging/server-support-for-audio-video-calls.md

28
content/instant-messaging/server-support-for-audio-video-calls.md

@ -34,18 +34,18 @@ Set up coturn
First install Coturn
:::console
sudo apt-get update && sudo apt-get install coturn
$ sudo apt-get update && sudo apt-get install coturn
After installing first make a backup of the existing configuration:
:::console
sudo mv /etc/turnserver.conf /etc/turnserver.conf.bak
$ sudo mv /etc/turnserver.conf /etc/turnserver.conf.bak
Then download the configuration by [the homebrewserver.club](https://homebrewserver.club/downloads/turnserver.conf):
:::console
cd ~
wget https://homebrewserver.club/downloads/turnserver.conf -O turnserver.conf
$ cd ~
$ wget https://homebrewserver.club/downloads/turnserver.conf -O turnserver.conf
The file looks like this:
@ -87,27 +87,31 @@ Now time for some config. You need to edit `/etc/tunserver.conf` in a few places
First, add your external IP-address to `listening-ip`. If you don't know it, you can find out using the following command:
:::console
`curl https://ifconfig.co`
$ curl https://ifconfig.co
Then, set `static-auth-secret` to a decently long passphrase. You can also generate one with:
:::console
`openssl rand -base64 30`.
$ openssl rand -base64 30
Take note of it because we will need this secret later.
Finally, edit the paths to the Let's Encrypt certificates to whatever you've set in ['Configuring an XMPP server for secure, mobile instant messaging']({filename}instant-messaging/configuring_an_xmpp_server_prosody_0.11.md#enabling-https).
Once you are done move it in to place:
::: console
$ sudo mv turnserver.conf /etc/turnserver.conf
Update & set up Prosody
---
First update your Prosody modules:
:::console
apt-get install mercurial
cd /usr/src/prosody-modules
hg pull
hg update
$ apt-get install mercurial
$ cd /usr/src/prosody-modules
$ hg pull
$ hg update
Then edit your prosody config in `/etc/prosody/prosody.cfg.lua`:
@ -126,12 +130,12 @@ Finishing up
Start `coturn` and enable it start on boot
:::console
sudo systemctl enable --now coturn
$ sudo systemctl enable --now coturn
Restart `prosody`
:::console
/etc/init.d/prosody restart
$ /etc/init.d/prosody restart
Finally to check if it works you can add check your server with the web-based [Conversations Compliance tester](https://compliance.conversations.im/)

Loading…
Cancel
Save