Media doesn't redirect to base URL
Environment
- Installation type:
-
OTP -
From source
-
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.0.2
- Elixir version (
elixir -v
for from source installations, N/A for OTP): - Operating system:
- PostgreSQL version (
postgres -V
):
Bug description
I have my base URL for media uploads set to https://blobcdn.busshi.moe/plbusshimoe/, my public endpoint set to https://blob.blob.cat/, and my bucket set to plbusshimoe.
When I go to https://pl.busshi.moe/media/4ba00ed726a11321f3936ff780a19c32b1930f4ae77d83ce0e4f2421cf793086.png (or any other media), it should redirect to baseurl/filename, in this case https://blobcdn.busshi.moe/plbusshimoe/4ba00ed726a11321f3936ff780a19c32b1930f4ae77d83ce0e4f2421cf793086.png. However, it redirects to https://blob.blob.cat/plbusshimoe/4ba00ed726a11321f3936ff780a19c32b1930f4ae77d83ce0e4f2421cf793086.png, bypassing use of a CDN. It does not seem like this would be intended behavior, and could break setups where direct access to the s3 endpoint is disallowed.