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:
parent
5ef698a542
commit
e0a1b3366f
@ -862,6 +862,10 @@ The bucket must support access control lists (ACLs). For AWS S3, this means sett
|
|||||||
|
|
||||||
#### `S3_ALIAS_HOST`
|
#### `S3_ALIAS_HOST`
|
||||||
|
|
||||||
|
#### `EXTRA_MEDIA_HOSTS`
|
||||||
|
|
||||||
|
**Version history:**\
|
||||||
|
4.4.0 - added
|
||||||
|
|
||||||
#### `S3_OPEN_TIMEOUT`
|
#### `S3_OPEN_TIMEOUT`
|
||||||
|
|
||||||
|
@ -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
|
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:
|
And restart Mastodon:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -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
|
provider. This can be done in your own reverse proxy, or by using a
|
||||||
CDN.
|
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" >}}
|
{{< page-ref page="admin/optional/object-storage-proxy.md" >}}
|
||||||
|
|
||||||
{{< hint style="info" >}}
|
{{< hint style="info" >}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user