I have a loaded and running docker container with Seafile. I am able to access it using the caddyfile as set up. However, the avatar image for my account is showing up as a broken link.
Based on my research the problem seems to be due to the absoute URL being requested for the image.
Avatar in share dialog missing seems to cover the issue as well as solutions for NGinx and Apache. I just can’t figure out how to do the same thing in Caddy2.
It sound like the HTTP_X_FORWARDED_PROTO needs to be set to HTTPS
4. Error messages and/or full log output:
I was unable to find any relevant error logs.
5. What I already tried:
I have tried following the advice in the following Topic Caddy2 Wordress
Yes There is a log in docker log. It just doesn’t have any message that relates to the image error since it seem everything on the Caddy side is working correctly. It’s just that seafile isn’t getting the info it needs.
seafile.mydomain.com {
reverse_proxy seafile:80
}
Is what I used to have and that works no problem to access the site.
as for the php your correct this confusion as to syntax and what is actually required.
Based on my research what I’m looking to have happen is when seafile calls for the picture to fill the avatar I need it to call
seafile.mydomain.com/media/avatars/
rather than
http://127.0.0.1:8000/media/avatars/
apparently with apache this can be achieved by adding
ProxyPreserveHost On
I just can’t figure out what the equivalent is for Caddy.