Jellyfin Forum
How How to set the Custom Links for docker after creation? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: How How to set the Custom Links for docker after creation? (/t-how-how-to-set-the-custom-links-for-docker-after-creation)



How How to set the Custom Links for docker after creation? - ddxv - 2024-09-04

So I recently started up my Jellyfin with docker compose:



 
Code:
jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    restart: unless-stopped
    volumes:
      - ${FOLDER_FOR_DATA:?err}/jellyfin:/config
      - ${FOLDER_FOR_MEDIA:?err}/media:/data/media
      #- ${FOLDER_FOR_DATA:?err}/jellyfin/config/web-config.json:/config/jellyfin-web/config.json

    ports:
      - "${WEBUI_PORT_JELLYFIN:?err}:8096"
    environment:
      - PUID=${PUID:?err}
      - PGID=${PGID:?err}
      - UMASK=${UMASK:?err}
      - TZ=${TIMEZONE:?err}


Later I wanted to add a custom URL to overseerr so I can browse movies on my TV. So I tried to add custom links as seen in:
https://jellyfin.org/docs/general/clients/web-config/#custom-menu-links

I added this to a file /${FOLDER_FOR_DATA}/jellyfin-web/config.json:

Code:
"menuLinks": [
    {
        "name": "Custom Link",
        "url": "https://jellyfin.org"
    },
    {
        "name": "Custom Link w. Custom Icon",
        "icon": "attach_money",
        "url": "https://demo.jellyfin.org/stable"
    }
]


But after stopping and restarting docker in various ways (docker compose down and docker stop), I cannot ever seem to see my Menu changes reflected anywhere in Jellyfin (I assume these links show up in the left sidebar menu where it says "HOME"?).

As you can see the docker-compose.yml above I also tried:
- ${FOLDER_FOR_DATA:?err}/jellyfin/config/web-config.jsonConfused-faceconfig/jellyfin-web/config.json

Which also didn't work.

I'm not sure what I'm missing from the official instructions:

Quote:Overriding the default
config.json
can be done with an additional volume parameter to your
docker run
command, e.g.
--volume /path/to/config/web-config.jsonConfused-facejellyfin/jellyfin-web/config.json


*caution
If the config.json file doesn't exist on the first run, Docker will map it to a directory instead of a file, which won't work.*



RE: How How to set the Custom Links for docker after creation? - xaque - 2024-09-04

I've added custom links by using g a custom config.json and also use the Linuxserver image. If I recall, the mapping should be /usr/share/jellyfin/web/

That is the path inside the container that you can map to your host, then either edit the config.json or replace it. To confirm this you can poke around inside the container and cd around. First run when the container is running.

docker exec -it jellyfin /bin/bash

Use ls to list directories and files. I'm using managed volumes but should be the same using mounted volumes.


RE: How How to set the Custom Links for docker after creation? - ddxv - 2024-09-05

(2024-09-04, 07:30 AM)xaque Wrote: I've added custom links by using g a custom config.json and also use the Linuxserver image. If I recall, the mapping should be      /usr/share/jellyfin/web/

That is the path inside the container that you can map to your host, then either edit the config.json or replace it. To confirm this you can poke around inside the container and cd around. First run when the container is running.

docker exec -it jellyfin /bin/bash

Use ls to list directories and files. I'm using managed volumes but should be the same using mounted volumes.

Thanks! That was exactly it. Not sure if I'm just misreading the docs or what, but I thought that was only how to edit it for native installs instead of docker. Anyways, for anyone else stumbling here later, I did as suggested and overwrote the config in /usr/share with:

      - ${FOLDER_FOR_DATA:?err}/jellyfin/config/web-config.jsonConfused-faceusr/share/jellyfin/web/config.json