Giter VIP home page Giter VIP logo

Comments (5)

gtallan avatar gtallan commented on June 26, 2024

Just verified that modifying the start-container script to include an --advertiseaddr parameter for slimserver.pl does correct this issue - the "Customize Device" settings page no longer tries to connect to 172.17.0.x, and the image thumbnails are now shown.

I just lazily hard-coded the advertiseaddr ip address for this test but will think about the correct fix.

from slimserver-platforms.

michaelherger avatar michaelherger commented on June 26, 2024

Maybe we could add an optional variable like $EXTRA_ARGS to the startup script (see https://github.com/Logitech/slimserver-platforms/blob/d8120b35f0e8f3991968ab6db1abf22da89ad18f/Docker/start-container.sh#L20). It would be empty by default, but could be set in the Docker command line?

from slimserver-platforms.

gtallan avatar gtallan commented on June 26, 2024

I like this idea better than having code specific to --advertiseaddr - makes much more sense.

I do wonder if this has been the wrong approach to my original problem:

JiveExtras::Settings.pm is generating absolute URIs for the thumbnail images. The above fix does make these use the correct (external) ip address rather than the internal docker one. However perhaps it makes more sense just to use a relative URL, like the rest of LMS?

ie, in JiveExtras/Settings.pm (sub _addSettings), change:
my $urlBase = Slim::Utils::Network::serverURL() . "/jive$optname";
to just:
my $urlBase = "/jive$optname";

Making this change also appears to fix things correctly, at least for wallpaper images (I haven't tested sounds)

from slimserver-platforms.

michaelherger avatar michaelherger commented on June 26, 2024

I was wondering about the relative vs. absolute URL. If you're saying it was working with the relative path, then that should be the way to go.

from slimserver-platforms.

Mr-win7 avatar Mr-win7 commented on June 26, 2024

I have similar request when I'm trying to use ipv6 address with the container.
Any concern about the extra args? If not I can help to create an PR for it.

from slimserver-platforms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.