docs: create 3.0.0-alpha.12 docs

This commit is contained in:
jo 2022-04-07 19:22:14 +02:00 committed by Kyle Robbertze
parent 05342e2e83
commit 16d7461263
108 changed files with 5103 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# Always add "How to" at the beginning of your tutorials title
#
label: Tutorials
position: 99

View file

@ -0,0 +1,28 @@
---
title: How to setup a firewall using UFW
---
This tutorials will walk you though the steps required to setup a firewall using [UFW](https://doc.ubuntu-fr.org/ufw).
## 1. Install and enable `UFW`
First you need to make sure UFW is installed and enabled:
```bash
sudo apt install ufw
sudo ufw enable
```
## 2. Configure allowed ports
Next, you need to configure the firewall allowed ports:
```bash
sudo ufw allow 22,80,8000/tcp
```
If you plan to use the live stream input endpoint, be sure to open the `8001` and `8002` ports:
```bash
sudo ufw allow 8001,8002/tcp
```

View file

@ -0,0 +1,44 @@
---
title: How to setup a static ip using Netplan
---
This tutorials will walk you though the steps required to configure a server static IP address by modifying the [Netplan](https://netplan.io/reference/) configuration.
## 1. Edit the configuration
First find the right Netplan configuration filename, and edit the file:
```bash
cd /etc/netplan && ls # find the netplan filename
sudo nano ##-network-manager-all.yaml
```
If the Netplan configuration is empty, fill in the file with the example below. Otherwise,
input the IP address reserved for the server in `xxx.xxx.xxx.xxx/yy` format, the gateway (the IP address
of your router), and your DNS server's address.
```yaml
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
addresses: [192.168.88.8/24]
gateway4: 192.168.88.1
nameservers:
addresses: [192.168.88.1]
```
:::tip
If you don't have your own DNS server you can use the router's address in most cases or a public DNS server like Google `8.8.8.8` or Cloudflare `1.1.1.1`.
:::
## 2. Apply the configuration
After the Netplan file has been saved, apply the changes by running:
```bash
sudo netplan apply
```