Cover art doesn't work when the port is not 80


#1

i have funkwhale setup via docker-compose and the cover art urls all ignore the port setting.
i have my nginx listening on port 5000 and this is what the cover art looks like

<img data-v-59960085="" src="http://192.168.1.222:80/media/albums/covers/2018/12/02/80426141-7490-4c2d-9434-f506aa13622d.jpg" class="ui mini image">


#2

I believe you’ve hit a current limitation of your sample configuration files. Our nginx container always listen port 80 (event if it’s mounted on port 5000 on the host), here: https://code.eliotberriot.com/funkwhale/funkwhale/blob/develop/deploy/docker-compose.yml#L81

Can you try updating this file, which should be located in `/srv/funkwhale/nginx/funkwhale_proxy.conf), and replace

proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
by
proxy_set_header X-Forwarded-Port 5000;

then restart the app?