properly formatting the console commands

This commit is contained in:
rra 2020-05-07 17:50:41 +02:00
parent 7c2c1b6076
commit d562bf6b10

View File

@ -34,18 +34,18 @@ Set up coturn
First install Coturn First install Coturn
:::console :::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: After installing first make a backup of the existing configuration:
:::console :::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): Then download the configuration by [the homebrewserver.club](https://homebrewserver.club/downloads/turnserver.conf):
:::console :::console
cd ~ $ cd ~
wget https://homebrewserver.club/downloads/turnserver.conf -O turnserver.conf $ wget https://homebrewserver.club/downloads/turnserver.conf -O turnserver.conf
The file looks like this: 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: First, add your external IP-address to `listening-ip`. If you don't know it, you can find out using the following command:
:::console :::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: Then, set `static-auth-secret` to a decently long passphrase. You can also generate one with:
:::console :::console
`openssl rand -base64 30`. $ openssl rand -base64 30
Take note of it because we will need this secret later. 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). 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 Update & set up Prosody
--- ---
First update your Prosody modules: First update your Prosody modules:
:::console :::console
apt-get install mercurial $ apt-get install mercurial
cd /usr/src/prosody-modules $ cd /usr/src/prosody-modules
hg pull $ hg pull
hg update $ hg update
Then edit your prosody config in `/etc/prosody/prosody.cfg.lua`: 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 Start `coturn` and enable it start on boot
:::console :::console
sudo systemctl enable --now coturn $ sudo systemctl enable --now coturn
Restart `prosody` Restart `prosody`
:::console :::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/) Finally to check if it works you can add check your server with the web-based [Conversations Compliance tester](https://compliance.conversations.im/)