I use gitea in a docker container and when I tried setting a custom favicon & logo by putting the images to the GITEA_CUSTOM/public/assets/img, but none of the images i put there showed up. Tried redoing the process 7 times, It just didn’t work.
What steps did you take to replace images? Are you certain the
$GITEA_CUSTOM is correct folder? What does Docker compose.yml look like?
- Set the
GITEA_CUSTOMvariable in docker-compose.yml
docker-compose up -d
- Uploaded the files using
curl --output filename.png https://url-to-file.tld/file/image.png. I also did the same with other .svg and .png files (i converted png files into svg before uploading them)
My docker-compose is:
version: '3' networks: gitea: external: false services: server: image: gitea/gitea:1.20.5 container_name: gitea environment: - USER_UID=1000 - USER_GID=1000 - GITEA_CUSTOM=/data/gitea/custom restart: always networks: - gitea volumes: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - '3000:3000' - '222:22'
I believe this is the incorrect directory. According to docs, it should be
$GITEA_CUSTOM/public/img (Customizing Gitea | Gitea Documentation).