Add a note about nginx accessing the directory

I had this issue and it was not incredibly clear as I followed the instructions exactly. However it appears either DigitalOcean or Ubuntu changed the default permission for /home/username folders to not be readable to users other than themselves.
This commit is contained in:
Hex052 2022-12-24 23:44:54 -09:00 committed by GitHub
parent d356c6caac
commit e34da9444f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -192,6 +192,11 @@ ln -s /etc/nginx/sites-available/mastodon /etc/nginx/sites-enabled/mastodon
Then edit `/etc/nginx/sites-available/mastodon` to replace `example.com` with your own domain name, and make any other adjustments you might need.
Confirm the user nginx runs as (likely `www-data`) can access the files created under `~mastodon/live/public`. The command will try to access the directory:
```bash
sudo -u www-data ls /home/mastodon/live/public/
```
Reload nginx for the changes to take effect: