Override logo and icon with client-overrides

As written int the config file, there seems to be a way to override favicon.png and logo.svg by placing an alternative version of them in /var/www/peertube/storage/client-overrides/' (or the folder set in the production.yaml

excerpt:

  # Overridable client files : logo.svg, favicon.png and icons/*.png (PWA) in client/dist/assets/images
  # Could contain for example assets/images/favicon.png
  # If the file exists, peertube will serve it
  # If not, peertube will fallback to the default fil
  client_overrides: '/var/www/peertube/storage/client-overrides/'

But i can’t figure out how to make peertube pick up on it. I have tried to place them both directly in the folder as this:
/var/www/peertube/storage/client-overrides/logo.svg
and as the config comment seems to suggests:
/var/www/peertube/storage/client-overrides/assets/images/logo.svg

None of the alternative seems to work. Permissions are set to be owned by peertube and both files have 644

I know i can use a plugin for this, but they all seem to load the original icon first, then swap them out, as i suppose they use CSS that gets loaded in last.

Can someone enlighten me as to how this client-overrides is supposed to work, please?

Many mercis and cordialement,
*Set

You might need to restart PeerTube to update the client cache.

Apart from that the function is discussed in https://github.com/Chocobozzz/PeerTube/pull/2897

1 « J'aime »

I never managed to make it work… (see my comments at end of the dicussion)

1 « J'aime »

Many thanks for your quick response @rigelk !

Was about to say i had tried that, and i have. But i’m pretty sure i did that before i remembered to check the permissions. :sweat_smile: So I will try that now and report back :slight_smile:

as in the case of @JohnLivingston, restarting peertube had no effect on my issue.

I tried it with overrides located in the 2 possible locations (the config comment is quite confusing in this particular topic)

addendum:
because i posses sufficient privileges on my server, i ended up replacing the original favicon and logo in versions/peertube-v2.4.0/client/dist/assets/images/and i guess it works fine for now :slight_smile: Would still be interesting to better understand how this built in function is supposed to work.