Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatar URL with DigitalOcean Spaces is wrong #172

Open
klafbang opened this issue Feb 14, 2023 · 0 comments
Open

Avatar URL with DigitalOcean Spaces is wrong #172

klafbang opened this issue Feb 14, 2023 · 0 comments

Comments

@klafbang
Copy link

klafbang commented Feb 14, 2023

I've configured Pixelfed to use DigitalOcean spaces for storage

PF_ENABLE_CLOUD=true
FILESYSTEM_DRIVER=spaces
FILESYSTEM_CLOUD=spaces
DO_SPACES_KEY=KEY HERE
DO_SPACES_SECRET=SECRET HERE
DO_SPACES_ENDPOINT=https://ams3.digitaloceanspaces.com
DO_SPACES_REGION=AMS3
DO_SPACES_BUCKET=westergaard-photos
DO_SPACES_ROOT=pixelfed

This works for regular images, but it seems the Avatar URLs get both the instance name and the bucket name, e.g.,

<img src="https://westergaard.photoshttps://westergaard-photos.ams3.digitaloceanspaces.com/pixelfed/public/avatars/052/713/244/636/315/648/1/nJv3YXwg5we6t5DQpC24_avatar.jpg%3Fv%3D3" width="38px" height="38px" class="rounded-circle float-right">

Removing the junk in the beginning and URL-decoding the parameter at the end, the URL works just fine

https://westergaard-photos.ams3.digitaloceanspaces.com/pixelfed/public/avatars/052/713/244/636/315/648/1/nJv3YXwg5we6t5DQpC24_avatar.jpg?v=3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant