]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/doc/production.md
Misc. typos
[github/Chocobozzz/PeerTube.git] / support / doc / production.md
index 43c32f08950f6b14296ab89968bc71b7f14cd0dc..cd85b04886800d2a60731ed9d0e97d50c19ebc27 100644 (file)
@@ -1,7 +1,7 @@
 # Production guide
 
   * [Installation](#installation)
-  * [Upgrade](#upgrade) 
+  * [Upgrade](#upgrade)
 
 ## Installation
 
@@ -24,6 +24,14 @@ Set its password:
 $ sudo passwd peertube
 ```
 
+**On FreeBSD**
+
+```
+$ sudo pw useradd -n peertube -d /var/www/peertube -s /usr/local/bin/bash -m
+$ sudo passwd peertube
+```
+or use `adduser` to create it interactively.
+
 ### Database
 
 Create the production database and a peertube user inside PostgreSQL:
@@ -51,7 +59,11 @@ $ sudo -u peertube wget -q "https://github.com/Chocobozzz/PeerTube/releases/down
 $ sudo -u peertube unzip peertube-${VERSION}.zip && sudo -u peertube rm peertube-${VERSION}.zip
 ```
 
-Install Peertube
+Install Peertube. If you're using CentOS7, do not forget to activate the devtoolset-6 software collection:
+```
+$ scl enable devtool-6 bash
+```
+And after that, follow the step as usual. Do not forget to exit the environment after installing Peertube.
 ```
 $ cd ../ && sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest
 $ cd ./peertube-latest && sudo -H -u peertube yarn install --production --pure-lockfile
@@ -68,6 +80,8 @@ $ cd /var/www/peertube && sudo -u peertube cp peertube-latest/config/production.
 Then edit the `config/production.yaml` file according to your webserver
 configuration.
 
+**PeerTube does not support webserver host change**. Keep in mind your domain name is definitive after your first PeerTube start.
+
 ### Webserver
 
 We only provide official configuration files for Nginx.
@@ -109,6 +123,13 @@ Now you have the certificates you can reload nginx:
 $ sudo systemctl reload nginx
 ```
 
+**FreeBSD**
+On FreeBSD you can use [Dehydrated](https://dehydrated.io/) `security/dehydrated` for [Let's Encrypt](https://letsencrypt.org/)
+
+```
+$ sudo pkg install dehydrated
+```
+
 ### systemd
 
 If your OS uses systemd, copy the configuration template:
@@ -174,6 +195,8 @@ Now you can subscribe to the mailing list for PeerTube administrators: https://f
 
 #### Auto (minor versions only)
 
+The password it asks is PeerTube's database user password.
+
 ```
 $ cd /var/www/peertube/peertube-latest/scripts && sudo -u peertube ./upgrade.sh
 $ sudo systemctl restart peertube && sudo journalctl -fu peertube
@@ -232,7 +255,7 @@ Restart PeerTube:
 $ sudo systemctl restart peertube
 ```
 
-### Things went wrong? 
+### Things went wrong?
 
 Change `peertube-latest` destination to the previous version and restore your SQL backup: