1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00

EXTRA_DATA_HOSTS (#1612)

* Update object-storage.md

* Update config.md

* Update object-storage-proxy.md

* Update object-storage.md

* Update config.md

* Update object-storage-proxy.md

* Update object-storage.md

* Update config.md

* Update content/en/admin/config.md

Co-authored-by: Claire <claire.github-309c@sitedethib.com>

---------

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Shlee 2025-04-08 07:27:11 +00:00 committed by GitHub
parent 5ef698a542
commit e0a1b3366f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 0 deletions

View File

@ -862,6 +862,10 @@ The bucket must support access control lists (ACLs). For AWS S3, this means sett
#### `S3_ALIAS_HOST`
#### `EXTRA_MEDIA_HOSTS`
**Version history:**\
4.4.0 - added
#### `S3_OPEN_TIMEOUT`

View File

@ -115,6 +115,12 @@ At last, you'll want to make sure Mastodon is using your new proxy to generate f
S3_ALIAS_HOST=files.example.com
```
(Optional) If your S3_ALIAS_HOST is using a 301 redirection or similar. Add the final location to the EXTRA_MEDIA_HOSTS
```bash
EXTRA_MEDIA_HOSTS=https://data.example1.com,https://data.example2.com
```
And restart Mastodon:
```bash

View File

@ -101,6 +101,12 @@ provider, reducing egress bandwidth costs from the storage
provider. This can be done in your own reverse proxy, or by using a
CDN.
`EXTRA_MEDIA_HOSTS` offers appending an additional list of hosts that
are allowed to serve media for your instance. This is useful if you
include external media in your custom CSS or about page, or if your
data storage provider makes use of redirects to other domains.
`EXTRA_MEDIA_HOSTS=https://data.example1.com,https://data.example2.com`
{{< page-ref page="admin/optional/object-storage-proxy.md" >}}
{{< hint style="info" >}}