Jellyfin Forum
Jellyfin customizations: visible on local network but not remote/url - 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: Jellyfin customizations: visible on local network but not remote/url (/t-jellyfin-customizations-visible-on-local-network-but-not-remote-url)



Jellyfin customizations: visible on local network but not remote/url - PoizenJam - 2024-06-04

I am running a Jellyfin server using Docker on Windows. For some reason, my customizations (page title, banner logos, favicon) work fine when I access the server through my LAN ip address (192.168.x.xx:8096); the server is accessible and works as intended, including custom banner images et al. However, when I attempt to access the same server remotely via a domain (jelly.mydomain.com), the server still works, but all of the customized images and page titles are reverted to default. See below:

[Image: xX3jvLh.png]

Clearing the site data, cache or using incognito mode does not seem to have any effect on reversing. Deleting the container and/or cache folder and rebuilding does not seem to fix the issue either.

In my case, I am using a docker-compose.yml file to build the container and overwrite/replace files within the container, including banners and titles and whatnot.

Code:
version: '3.5'
services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: PoizenJelly
    user: 1000:1000
    network_mode: 'bridge'
    ports:
      - 8096:8096
    volumes:
      - my\dummy\directory\config:/config
      - my\dummy\directory\cache:/cache
      - my\dummy\directory\assets\index.html:/jellyfin/jellyfin-web/index.html:ro
      - my\dummy\directory\assets\73233.bce0f70761dae6c47906.chunk.js:/jellyfin/jellyfin-web/73233.bce0f70761dae6c47906.chunk.js:ro
      - my\dummy\directory\assets\img\icon-transparent.png:/jellyfin/jellyfin-web/assets/img/icon-transparent.png:ro
      - my\dummy\directory\assets\img\banner-light.png:/jellyfin/jellyfin-web/assets/img/banner-light.png:ro
      - my\dummy\directory\assets\img\banner-dark.png:/jellyfin/jellyfin-web/assets/img/banner-dark.png:ro
      - my\dummy\directory\assets\img\favicon-16x16.ico:/jellyfin/jellyfin-web/bc8d51405ec040305a87.ico:ro
      - my\media\directory:/media:ro
    restart: 'unless-stopped'
    # Optional - alternative address used for autodiscovery
    environment:
      - JELLYFIN_PublishedServerUrl=https://jelly.mydomain.com/
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]

Is this the expected behaviour for remote jellyfin servers, or am I doing something wrong?


RE: Jellyfin customizations: visible on local network but not remote/url - TheDreadPirate - 2024-06-04

When setting your custom images/theme, where did you put the CSS? In Dashboard > General > Custom CSS? Or Settings > Display > Custom CSS?


RE: Jellyfin customizations: visible on local network but not remote/url - PoizenJam - 2024-06-04

I have not input any Custom CSS code on either the server end (Dashboard > General > Custom CSS) or on the user end (Settings > Display > Custom CSS). Both are blank. Are those necessary to include?

My instinct is that overwriting the files within the container would be sufficient. If 'banner-light.png' is overwritten in the container during docker-compose, then references to 'banner-light.png' should pull the updated, overwritten image, no? And, to be sure, that's how it behaves when locally accessed.

Frankly, I am confused how it's pulling the default 'index.html', '73233.bce0f70761dae6c47906.chunk.js' and images (e.g., 'banner-light.png') when accessed remotely, since the container ostensibly doesn't actually contain those files as best I can tell.


RE: Jellyfin customizations: visible on local network but not remote/url - TheDreadPirate - 2024-06-04

Are you using nginx with asset caching enabled?


RE: Jellyfin customizations: visible on local network but not remote/url - PoizenJam - 2024-06-04

Guilty as charged! I am using Nginx Proxy Manager + CloudFlare.

Temporarily disabling asset caching in NGinx, purging the Cloudflare cache, then doing a CTRL + F5 refresh in Chrome fixed the problem. It now retrieves the proper images and page titles.

Thanks a bunch!