This commit is contained in:
gunchleoc 2024-05-21 12:02:54 +00:00 committed by GitHub
commit b22c6d1e07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ The simplest way to store user uploads is by using the server's file system. Thi
By default, Mastodon will store file uploads under `public/system` in its installation directory, but that can be overridden using the `PAPERCLIP_ROOT_PATH` environment variable.
{{< hint style="info" >}}
If `PAPERCLIP_ROOT_PATH` is not below `/home/mastodon/live`, you'll need to edit `mastodon-sidekiq.service` and `mastodon-web.service` and replace `ReadWritePaths=/home/mastodon/live` by `ReadWritePaths=/home/mastodon <PAPERCLIP_ROOT_PATH>`.
{{</ hint >}}
By default, the files are served at `https://your-domain/system`, which can be overridden using `PAPERCLIP_ROOT_URL` and `CDN_HOST`.
{{< hint style="info" >}}