Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Improve production guide

Chocobozzzd6f1c8c841c9
diff --git a/support/doc/production.md b/support/doc/production.md
index 8aaea1042d..f54450e23b 100644
--- a/support/doc/production.md
+++ b/support/doc/production.md
@@ -16,27 +16,29 @@ Follow the steps of the [dependencies guide](/support/doc/dependencies.md).
Create a `peertube` user with `/var/www/peertube` home:
-```bash
+::: code-group
+
+```bash [GNU/Linux]
sudo useradd -m -d /var/www/peertube -s /usr/sbin/nologin -p peertube peertube
```
-Set its password:
-```bash
-sudo passwd peertube
+```bash [FreeBSD]
+sudo pw useradd -n peertube -d /var/www/peertube -s /usr/sbin/nologin -m
```
-Ensure the peertube root directory is traversable by nginx:
+:::
+
+Set its password:
```bash
-ls -ld /var/www/peertube # Should be drwxr-xr-x
+sudo passwd peertube
```
-**On FreeBSD**
+Ensure the peertube root directory is traversable by nginx:
```bash
-sudo pw useradd -n peertube -d /var/www/peertube -s /usr/sbin/nologin -m
+sudo chmod 755 /var/www/peertube
```
-or use `adduser` to create it interactively.
### :card_file_box: Database