Full documentation repository for Mastodon
Go to file
Thomas Soubrier 46cbbc6d73
Update object-storage-proxy.md (#1056)
This documentation has I believe one very confusing point: It uses two times `YOUR_S3_HOSTNAME` in the nginx configuration example, however the second time it looks like you actually have to use `YOUR_BUCKET_NAME.YOUR_S3_HOSTNAME`.

## Explanation
Mastodon is using path-style requests to S3 which looks like this:
https://s3.region-code.amazonaws.com/bucket-name/key-name

Once you enable the new virtual host nginx file using the current indications, the path-style request which goes to amazon looks like this:
https://s3.region-code.amazonaws.com/key-name

In other words, the bucket name is not being sent S3 and the images break.

This is because the current instructions make it seem like the header Host name is not including the bucket
`proxy_set_header Host YOUR_S3_HOSTNAME;`

With the current path-style request integration, one must use the bucket name in the Host header for this to work, hence the proposed change to

`proxy_set_header Host YOUR_BUCKET_NAME.YOUR_S3_HOSTNAME;`
2023-03-29 10:52:31 +02:00
.github/workflows Deploy to Github Pages (#1138) 2022-12-30 21:54:01 +01:00
archetypes Miscellaneous fixes (#1110) 2023-02-07 02:14:07 +01:00
assets Switch hosting to Vercel (#1113) 2022-12-21 06:26:37 +01:00
content Update object-storage-proxy.md (#1056) 2023-03-29 10:52:31 +02:00
data Update documentation with contents by twrnh 2020-01-04 10:33:16 +01:00
i18n Update content for 4.0 (part 1) (#991) 2022-11-20 07:34:38 +01:00
layouts Spelling (#1163) 2023-03-08 17:38:51 +01:00
static Add documentation for object storage providers (#1186) 2023-03-16 22:19:03 +01:00
.gitignore Switch hosting to Vercel (#1113) 2022-12-21 06:26:37 +01:00
.gitlab-ci.yml Update documentation with contents by twrnh 2020-01-04 10:33:16 +01:00
LICENSE Add LICENSE 2018-10-21 04:03:53 +02:00
README.md Add README 2020-01-05 20:26:27 +01:00
config.toml Update content for 4.0 (part 1) (#991) 2022-11-20 07:34:38 +01:00

README.md

Mastodon

View the documentation at https://docs.joinmastodon.org