mirror of
https://github.com/42wim/matterbridge.git
synced 2025-04-21 23:27:52 +02:00
Update digitalocean deploy
parent
83794a18b6
commit
ea247b5444
75
Deploy:-Digitalocean.md
Normal file
75
Deploy:-Digitalocean.md
Normal file
@ -0,0 +1,75 @@
|
||||
# Running on digitalocean
|
||||
|
||||

|
||||
|
||||
## Droplet install
|
||||
|
||||
After you have setup your droplet using eg ubuntu 18.04 TLS (https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04-)
|
||||
|
||||
## Create a matterbridge user
|
||||
|
||||
``bash
|
||||
$ sudo adduser --system --no-create-home --group matterbridge
|
||||
Adding system user `matterbridge' (UID 111) ...
|
||||
Adding new group `matterbridge' (GID 115) ...
|
||||
Adding new user `matterbridge' (UID 111) with group `matterbridge' ...
|
||||
Not creating home directory `/home/matterbridge'.
|
||||
``
|
||||
|
||||
## Matterbridge install
|
||||
|
||||
You can install the matterbridge binary in /usr/bin/matterbridge
|
||||
|
||||
``bash
|
||||
$ sudo wget https://github.com/42wim/matterbridge/releases/download/v1.16.5/matterbridge-1.16.5-linux-64bit -O /usr/bin/matterbridge
|
||||
$ sudo chmod 755 /usr/bin/matterbridge
|
||||
``
|
||||
|
||||
## Matterbridge configuration
|
||||
|
||||
Now follow these [steps](https://github.com/42wim/matterbridge/wiki/How-to-create-your-config) to create your configuration.
|
||||
|
||||
Save that file to /etc/matterbridge/matterbridge.toml
|
||||
|
||||
``bash
|
||||
$ sudo mkdir /etc/matterbridge
|
||||
$ sudo cp matterbridge.toml /etc/matterbridge/matterbridge.toml
|
||||
``
|
||||
|
||||
Before going to the next step, check if your config is correct by running manually
|
||||
|
||||
``bash
|
||||
$ /usr/bin/matterbridge -conf /etc/matterbridge/matterbridge.toml
|
||||
``
|
||||
|
||||
If everything looks fine you can set it up as a systemd service
|
||||
|
||||
## Matterbridge running as systemd service
|
||||
|
||||
Next up is creating a `matterbridge.service`
|
||||
|
||||
``
|
||||
[Unit]
|
||||
Description=matterbridge
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/matterbridge -conf /etc/matterbridge/matterbridge.toml
|
||||
User=matterbridge
|
||||
Group=matterbridge
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
``
|
||||
|
||||
Save the above config as `/etc/systemd/system/matterbridge.service`
|
||||
|
||||
Now enable and run it
|
||||
|
||||
``bash
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable matterbridge
|
||||
sudo systemctl run matterbridge
|
||||
``
|
||||
|
||||
You should now have the service running.
|
Loading…
x
Reference in New Issue
Block a user