X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fdoc%2Fproduction.md;h=44b2c29b11981099abb91511ce9655bd116e2b67;hb=927d14bd264d9aafafc21a0e095c8837f6b4acd8;hp=6d7744b1f613349ee343277bc02645930b1ce185;hpb=ab623c0e0b4815bd69a94887241a69aaa857ed26;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/production.md b/support/doc/production.md index 6d7744b1f..44b2c29b1 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -25,6 +25,12 @@ Set its password: $ sudo passwd peertube ``` +Ensure the peertube root directory is traversable by nginx: + +```bash +$ ls -ld /var/www/peertube # Should be drwxr-xr-x +``` + **On FreeBSD** ```bash @@ -154,12 +160,6 @@ $ sudo certbot certonly --standalone --post-hook "systemctl restart nginx" $ sudo systemctl reload nginx ``` -Now you have the certificates you can reload nginx: - -```bash -$ sudo systemctl reload nginx -``` - Certbot should have installed a cron to automatically renew your certificate. Since our nginx template supports webroot renewal, we suggest you to update the renewal config file to use the `webroot` authenticator: @@ -339,6 +339,15 @@ $ cd /var/www/peertube && \ sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest ``` +### Configuration + +You can 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 Check changes in nginx configuration: