• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting How How to set the Custom Links for docker after creation?

     
    • 0 Vote(s) - 0 Average

    How How to set the Custom Links for docker after creation?

    ddxv
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #1
    2024-09-04, 05:01 AM (This post was last modified: 2024-09-04, 05:02 AM by ddxv. Edited 1 time in total.)
    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/client...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.*
    xaque
    Offline

    Member

    Posts: 76
    Threads: 1
    Joined: 2023 Jun
    Reputation: 3
    Country:United States
    #2
    2024-09-04, 07:30 AM
    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.
    1
    ddxv
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #3
    2024-09-05, 01:23 AM
    (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
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode