X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fdoc%2Fproduction.md;h=9a84f19a388abe120b32d07b3e117b692abb6c1d;hb=81bd40d2cb563a4c1c7be9c2b17e37fc04bfff6a;hp=b400ac4510660d722f8cfa166b2c68e8121c87a3;hpb=1ea868a9456439108fbd87255537093ed8bd456f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/production.md b/support/doc/production.md index b400ac451..9a84f19a3 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -175,16 +175,19 @@ $ # Add webroot_path = /var/www/certbot $ sudo vim /etc/letsencrypt/renewal/your-domain.com.conf ``` -**FreeBSD** +If you plan to have many concurrent viewers on your PeerTube instance, consider increasing `worker_connections` value: https://nginx.org/en/docs/ngx_core_module.html#worker_connections. + +
+If using FreeBSD + On FreeBSD you can use [Dehydrated](https://dehydrated.io/) `security/dehydrated` for [Let's Encrypt](https://letsencrypt.org/) ```bash $ sudo pkg install dehydrated ``` +
-### :alembic: TCP/IP Tuning - -**On Linux** +### :alembic: Linux TCP/IP Tuning ```bash $ sudo cp /var/www/peertube/peertube-latest/support/sysctl.d/30-peertube-tcp.conf /etc/sysctl.d/ @@ -229,7 +232,9 @@ $ sudo systemctl start peertube $ sudo journalctl -feu peertube ``` -**FreeBSD** +
+If using FreeBSD + On FreeBSD, copy the startup script and update rc.conf: ```bash @@ -242,8 +247,10 @@ Run: ```bash $ sudo service peertube start ``` +
-### :bricks: OpenRC +
+If using OpenRC If your OS uses OpenRC, copy the service script: @@ -263,6 +270,7 @@ Run and print last logs: $ sudo /etc/init.d/peertube start $ tail -f /var/log/peertube/peertube.log ``` +
### :technologist: Administrator @@ -289,16 +297,15 @@ Now your instance is up you can: **Check the changelog (in particular the *IMPORTANT NOTES* section):** https://github.com/Chocobozzz/PeerTube/blob/develop/CHANGELOG.md -#### Auto - -The password it asks is PeerTube's database user password. +Run the upgrade script (the password it asks is PeerTube's database user password): ```bash $ cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh $ sudo systemctl restart peertube # Or use your OS command to restart PeerTube if you don't use systemd ``` -#### Manually +
+Prefer manual upgrade? Make a SQL backup @@ -344,17 +351,18 @@ $ cd /var/www/peertube && \ sudo unlink ./peertube-latest && \ sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest ``` +
-### Configuration +### Update PeerTube configuration -You can check for configuration changes, and report them in your `config/production.yaml` file: +Check for configuration changes, and report them in your `config/production.yaml` file: ```bash $ cd /var/www/peertube/versions $ diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example" ``` -### nginx +### Update nginx configuration Check changes in nginx configuration: @@ -363,7 +371,7 @@ $ cd /var/www/peertube/versions $ diff -u "$(ls --sort=t | head -2 | tail -1)/support/nginx/peertube" "$(ls --sort=t | head -1)/support/nginx/peertube" ``` -### systemd +### Update systemd service Check changes in systemd configuration: