diff options
author | J Webb <webbj74@users.noreply.github.com> | 2022-06-21 12:40:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 14:40:53 +0200 |
commit | dec49521556fc228c6e05b6199e9b07f619b38fb (patch) | |
tree | 980c957e9621f59476aa7fb37f317e8feec3b245 /support/doc | |
parent | c8bac5396c4ed9ee82e0ef97b9051e9065d6a147 (diff) | |
download | PeerTube-dec49521556fc228c6e05b6199e9b07f619b38fb.tar.gz PeerTube-dec49521556fc228c6e05b6199e9b07f619b38fb.tar.zst PeerTube-dec49521556fc228c6e05b6199e9b07f619b38fb.zip |
Ensure peertube root directory is setup to be traversed by nginx (#5028)
* Update production.md
On Ubuntu 22.04, the dir `/var/www/peertube` is restricted to user peertube & group peertube. This causes issues with many of the subsequent sudo commands, and also results in white-screen on initial visit to the site due to JS files not being accessible. This PR loosens those requirements, but maybe would be better if nginx is just added to peertube group? This is my first time installing PeertTube, so I'll defer to someone with more knowledge of this framework to vet the approach here.
* Set specific mode on peertube root directory
* Minor fixup
* Prefer ls instead of chmod to check directory
Co-authored-by: Chocobozzz <me@florianbigard.com>
Diffstat (limited to 'support/doc')
-rw-r--r-- | support/doc/production.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/support/doc/production.md b/support/doc/production.md index ea0a98395..34e19fc8c 100644 --- a/support/doc/production.md +++ b/support/doc/production.md | |||
@@ -25,6 +25,12 @@ Set its password: | |||
25 | $ sudo passwd peertube | 25 | $ sudo passwd peertube |
26 | ``` | 26 | ``` |
27 | 27 | ||
28 | Ensure the peertube root directory is traversable by nginx: | ||
29 | |||
30 | ```bash | ||
31 | $ ls -ld /var/www/peertube # Should be drwxr-xr-x | ||
32 | ``` | ||
33 | |||
28 | **On FreeBSD** | 34 | **On FreeBSD** |
29 | 35 | ||
30 | ```bash | 36 | ```bash |