How change taiga default logo

When i was trying to change deafult logo how to change the default logo

You’d have to find where the logo’s are and replace them.
First thing to do would be to log into your docker process.

Here is the contents of a script I wrote to make it easy to login next time.

start-taiga-front-bash-session.sh

#!/usr/bin/env bash
echo "docker run -it taigaio/taiga-front:latest bash"
docker run -it taigaio/taiga-front:latest bash

Then I did a list command

ls -l
total 64
drwxr-xr-x    1 root     root          4096 Jul 23  2024 bin
drwxr-xr-x    5 root     root           360 Feb 16 05:16 dev
drwxr-xr-x    1 root     root          4096 Jul 23  2024 docker-entrypoint.d
-rwxrwxr-x    1 root     root          1616 Mar 29  2023 docker-entrypoint.sh
drwxr-xr-x    1 root     root          4096 Feb 16 05:16 etc
drwxr-xr-x    2 root     root          4096 Mar 29  2023 home
drwxr-xr-x    1 root     root          4096 Mar 29  2023 lib
drwxr-xr-x    5 root     root          4096 Mar 29  2023 media
drwxr-xr-x    2 root     root          4096 Mar 29  2023 mnt
drwxr-xr-x    2 root     root          4096 Mar 29  2023 opt
dr-xr-xr-x  371 root     root             0 Feb 16 05:16 proc
drwx------    2 root     root          4096 Mar 29  2023 root
drwxr-xr-x    2 root     root          4096 Mar 29  2023 run
drwxr-xr-x    2 root     root          4096 Mar 29  2023 sbin
drwxr-xr-x    2 root     root          4096 Mar 29  2023 srv
dr-xr-xr-x   13 root     root             0 Nov  8 04:27 sys
drwxrwxrwt    1 root     root          4096 Mar 29  2023 tmp
drwxr-xr-x    1 root     root          4096 Mar 29  2023 usr
drwxr-xr-x    1 root     root          4096 Jul 23  2024 var

docker-entrypoint.sh looked interesting so I checked that.
It basically ran the contents of docker-entrypoint.d

ls -l docker-entrypoint.d
total 20
-rwxrwxr-x    1 root     root          2123 Mar 29  2023 10-listen-on-ipv6-by-default.sh
-rwxrwxr-x    1 root     root          1273 Mar 29  2023 20-envsubst-on-templates.sh
-rwxrwxr-x    1 root     root          4621 Mar 29  2023 30-tune-worker-processes.sh
-rwxr-xr-x    1 root     root          1610 Jul 23  2024 30_config_env_subst.sh

I read the contents of 10-listen-on-ipv6-by-default.sh and it describes the contents of the nginx config file.

server {
    listen 80 default_server;

    client_max_body_size 100M;
    charset utf-8;

    location / {
        alias /usr/share/nginx/html/;
        index index.html;
        try_files $uri $uri/ index.html =404;
    }
}

So the files for the front end are in /usr/share/nginx/html/

pwd
/usr/share/nginx/html

ls -l
total 164
-rw-r--r--    1 root     root           497 Mar 28  2023 50x.html
-rw-r--r--    1 root     root           921 Jul 23  2024 conf.example.json
-rw-r--r--    1 root     root          1205 Feb 19  2024 conf.json.template
-rw-r--r--    1 root     root          2628 Jul 23  2024 humans.txt
lrwxrwxrwx    1 root     root            24 Jul 23  2024 images -> ./v-1721729942015/images
-rw-r--r--    1 root     root        140629 Jul 23  2024 index.html
drwxr-xr-x    5 root     root          4096 Jul 23  2024 plugins
drwxrwxrwx   11 root     root          4096 Jul 23  2024 v-1721729942015

Images looks interesting

cd images
/usr/share/nginx/html/images# ls -l
total 388
-rw-r--r--    1 root     root          1797 Jul 23  2024 attachment-gallery.png
-rw-r--r--    1 root     root           587 Jul 23  2024 avatar-role.png
-rw-r--r--    1 root     root        101667 Jul 23  2024 bg.png
-rw-r--r--    1 root     root          8211 Jul 23  2024 discover.png
drwxrwxrwx    2 root     root          4096 Jul 23  2024 empty
-rw-r--r--    1 root     root          1382 Jul 23  2024 epics-empty.png
-rw-r--r--    1 root     root          6979 Jul 23  2024 favicon.png
drwxrwxrwx    2 root     root          4096 Jul 23  2024 import-logos
-rw-r--r--    1 root     root         59933 Jul 23  2024 invitation_bg.jpg
-rw-r--r--    1 root     root          9533 Jul 23  2024 logo-color.png
-rw-r--r--    1 root     root         62174 Jul 23  2024 logo.png
-rw-r--r--    1 root     root          6385 Jul 23  2024 looking-for-people.png
drwxrwxrwx    2 root     root          4096 Jul 23  2024 markitup
-rw-r--r--    1 root     root          9390 Jul 23  2024 menu-vert.png
-rw-r--r--    1 root     root         13984 Jul 23  2024 menu.png
-rw-r--r--    1 root     root         26811 Jul 23  2024 monster-fight.png
-rw-r--r--    1 root     root         10317 Jul 23  2024 notification-decoration.png
drwxrwxrwx    2 root     root          4096 Jul 23  2024 project-logos
-rw-r--r--    1 root     root           236 Jul 23  2024 quote.png
-rw-r--r--    1 root     root          4567 Jul 23  2024 tribe-logo.png
-rw-r--r--    1 root     root          2053 Jul 23  2024 unnamed.png
drwxrwxrwx    2 root     root          4096 Jul 23  2024 user-avatars
-rw-r--r--    1 root     root          4519 Jul 23  2024 user-noimage.png

I know from inspecting the logo from the front page I’m looking for svg’s so images is a no go.

/usr/share/nginx/html/images# cd ..
5f6daaa4b518:/usr/share/nginx/html# ls -l
total 164
-rw-r--r--    1 root     root           497 Mar 28  2023 50x.html
-rw-r--r--    1 root     root           921 Jul 23  2024 conf.example.json
-rw-r--r--    1 root     root          1205 Feb 19  2024 conf.json.template
-rw-r--r--    1 root     root          2628 Jul 23  2024 humans.txt
lrwxrwxrwx    1 root     root            24 Jul 23  2024 images -> ./v-1721729942015/images
-rw-r--r--    1 root     root        140629 Jul 23  2024 index.html
drwxr-xr-x    5 root     root          4096 Jul 23  2024 plugins
drwxrwxrwx   11 root     root          4096 Jul 23  2024 v-1721729942015
5f6daaa4b518:/usr/share/nginx/html# cd v-1721729942015/
ckeditor-translations/ fonts/                 images/                locales/               svg/                   
emojis/                highlightjs-languages/ js/                    styles/                
5f6daaa4b518:/usr/share/nginx/html# cd v-1721729942015/
5f6daaa4b518:/usr/share/nginx/html/v-1721729942015# ls -l
total 92
drwxrwxrwx    2 root     root          4096 Jul 23  2024 ckeditor-translations
drwxrwxrwx    2 root     root         49152 Jul 23  2024 emojis
drwxrwxrwx    2 root     root          4096 Jul 23  2024 fonts
drwxrwxrwx    2 root     root         12288 Jul 23  2024 highlightjs-languages
drwxrwxrwx    7 root     root          4096 Jul 23  2024 images
drwxrwxrwx    3 root     root          4096 Jul 23  2024 js
drwxrwxrwx    4 root     root          4096 Jul 23  2024 locales
drwxrwxrwx    2 root     root          4096 Jul 23  2024 styles
drwxrwxrwx    3 root     root          4096 Jul 23  2024 svg
5f6daaa4b518:/usr/share/nginx/html/v-1721729942015# cd svg
5f6daaa4b518:/usr/share/nginx/html/v-1721729942015/svg# ls -l
total 168
-rw-r--r--    1 root     root          6099 Jul 23  2024 editor.svg
drwxrwxrwx    2 root     root          4096 Jul 23  2024 icons
-rw-r--r--    1 root     root          1075 Jul 23  2024 logo-color.svg
-rw-r--r--    1 root     root          1601 Jul 23  2024 logo-moustache.svg
-rw-r--r--    1 root     root          2102 Jul 23  2024 logo-nav.svg
-rw-r--r--    1 root     root          3192 Jul 23  2024 logo.svg
-rw-r--r--    1 root     root          3781 Jul 23  2024 pattern.svg
-rw-r--r--    1 root     root           979 Jul 23  2024 spinner-circle.svg
-rw-r--r--    1 root     root          2978 Jul 23  2024 spinner.svg
-rw-r--r--    1 root     root        128660 Jul 23  2024 sprite.svg

Voila! There are the logo svg files.

So you’d need to create your svg files, you might have to create png files, create a script to copy the files in, and restart the front end - that should work.

Cheers!

2 Likes