X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fdoc%2Fproduction.md;h=64ddd9e489aaf6f1b32c3222640aa144be9699cc;hb=d12b40fb96d56786a96c06a621f3d8e0a0d24f4a;hp=48ecf1517e0b20973e425cdf5ac42ea43725a248;hpb=3318147300b4f998adf728eb0a5a14a4c1829c51;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/production.md b/support/doc/production.md index 48ecf1517..64ddd9e48 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: @@ -260,7 +260,7 @@ $ tail -f /var/log/peertube/peertube.log ### :technologist: Administrator -The administrator password is automatically generated and can be found in the PeerTube +The administrator username is `root` and the password is automatically generated. It can be found in PeerTube logs (path defined in `production.yaml`). You can also set another password with: ```bash @@ -281,7 +281,7 @@ Now your instance is up you can: ### PeerTube instance -**Check the changelog (in particular BREAKING CHANGES!):** https://github.com/Chocobozzz/PeerTube/blob/develop/CHANGELOG.md +**Check the changelog (in particular the *IMPORTANT NOTES* section):** https://github.com/Chocobozzz/PeerTube/blob/develop/CHANGELOG.md #### Auto @@ -328,7 +328,7 @@ Copy new configuration defaults values and update your configuration file: ```bash $ sudo -u peertube cp /var/www/peertube/versions/peertube-${VERSION}/config/default.yaml /var/www/peertube/config/default.yaml -$ diff /var/www/peertube/versions/peertube-${VERSION}/config/production.yaml.example /var/www/peertube/config/production.yaml +$ diff -u /var/www/peertube/versions/peertube-${VERSION}/config/production.yaml.example /var/www/peertube/config/production.yaml ``` Change the link to point to the latest version: @@ -339,13 +339,22 @@ $ 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: ```bash $ cd /var/www/peertube/versions -$ diff "$(ls --sort=t | head -2 | tail -1)/support/nginx/peertube" "$(ls --sort=t | head -1)/support/nginx/peertube" +$ diff -u "$(ls --sort=t | head -2 | tail -1)/support/nginx/peertube" "$(ls --sort=t | head -1)/support/nginx/peertube" ``` ### systemd @@ -354,7 +363,7 @@ Check changes in systemd configuration: ```bash $ cd /var/www/peertube/versions -$ diff "$(ls --sort=t | head -2 | tail -1)/support/systemd/peertube.service" "$(ls --sort=t | head -1)/support/systemd/peertube.service" +$ diff -u "$(ls --sort=t | head -2 | tail -1)/support/systemd/peertube.service" "$(ls --sort=t | head -1)/support/systemd/peertube.service" ``` ### Restart PeerTube