I just bumped my #funkwhale instance to 0.20.1. I'm now facing some issues that the cover-images get loaded with a wrong port number (my nginx-setup is somewhat special…). However, serving music and static content works as expected. Any hints what goes wrong and what I could configure to fix it? @funkwhale
@funkwhale Thanks for this helpful explanation, it really helped me a lot. Today I debugged this further and finally fixed it. I realized that this was caused by the `$server_port` part in X-Forwarded-Host and -Port: https://dev.funkwhale.audio/funkwhale/funkwhale/blob/develop/deploy/funkwhale_proxy.conf#L6. Even though I made use of `real_ip_header proxy_protocol`it seems that nginx doesn't rewrite the $server_port variable with this (just the client address). After replacing the var with 443 and everything worked again.
@funkwhale I wonder if there is any variable actually properly rewritten by the real_ip_header module which could be used instead here. It might would improve Funkwhales ability to be hosted behind complex proxy setups. If I find something, I'll propose a MR :)
@sqozz I have to say, an external look/contribution on this would be really valuable and much appreciated!
chaos.social – a Fediverse instance for & by the Chaos community