This also works fine for the Instance website, where every URL now uses the configured media url, but when I post an image other instances still get the S3 storage URL over Activity Pub.
If I take a look at the post in the Django Admin console it shows the correct media URL in the Activity Pub JSON, but this doesn't seem to be received on the remote Mastodon instance.
I've set the environment variable for both, the web and the stator container instances.
I'm currently using Cloudflare R2 as an S3 backend for media storage.
Cloudflare does not allow access to the objects via the S3 storage URL and requires a custom URL.
From the https://github.com/jointakahe/takahe/blob/b003af64ccab6b4462d0e1fe8598c01964e70a44/takahe/settings.py#L438 I've seen that
TAKAHE_MEDIA_URL
is set asAWS_S3_CUSTOM_DOMAIN
so it should be possible to configure an own URL.This also works fine for the Instance website, where every URL now uses the configured media url, but when I post an image other instances still get the S3 storage URL over Activity Pub.
If I take a look at the post in the Django Admin console it shows the correct media URL in the Activity Pub JSON, but this doesn't seem to be received on the remote Mastodon instance.
I've set the environment variable for both, the web and the stator container instances.