snapcast icon indicating copy to clipboard operation
snapcast copied to clipboard

Allow a way to get images from image cache that supports a reverse proxy

Open daredoes opened this issue 1 year ago • 2 comments

Currently, the art data URL is formed from the settings host and port values under http.

What I think would be ideal is some way to send the image data itself to the snapcast client so it can store a cached version itself on the client.

https://github.com/badaix/snapcast/blob/481f08199ca31c60c9a3475f1064e6b06a503d12/server/streamreader/pcm_stream.cpp#L489C88-L489C92

daredoes avatar Jun 27 '23 05:06 daredoes

Don't know how your infrastructure looks like, but if the client is talking to the server via the proxy, doesn't it work to set the [http] host value to the IP of the proxy?

badaix avatar Mar 06 '24 13:03 badaix

So I'm using a reverse proxy, which means that I have to use a web address, not an IP address.

currently i have host set to 0.0.0.0 so it binds to the network.

daredoes avatar Mar 06 '24 17:03 daredoes