Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

settings to connect to localhost #233

Closed
arielelkin opened this issue Mar 30, 2016 · 5 comments
Closed

settings to connect to localhost #233

arielelkin opened this issue Mar 30, 2016 · 5 comments

Comments

@arielelkin
Copy link

What settings should I put into Jamstash if I want to connect to localhost?

image

Or do I have to put the server's IP?

@Hyzual
Copy link
Contributor

Hyzual commented Mar 30, 2016

Putting http://localhost for the server should work, I just tried it using containers for jamstash and subsonic. It goes without saying that you should also change it to http://localhost:4040 if you're using port 4040.

Does it work for you ?

@arielelkin
Copy link
Author

No.

As a matter of fact, I've setup an Ampache (Ampache is exposing a Subsonic API) instance running in a Docker container, and copied Jamstash's files to the container's /var/www/ directory. Jamstash displays fine, but if I specify http://localhost as the server I get an Error when contacting the Subsonic server. The requested data was not found. (see #234)

@Hyzual
Copy link
Contributor

Hyzual commented Apr 2, 2016

From a quick glance at Ampache's github repo, it seems that its Subsonic API only supports XML. Can you confirm that this is the case ? I didn't know about Ampache before you mentioned it.

Jamstash can only deal with a JSON API (or JSONP), so if Ampache only provides XML then they are incompatible.

@arielelkin
Copy link
Author

indeed, Ampache only provides XML...

As a workaround, you can install a Subsonic instance and tell it to grab its data from Ampache. Ampache can provide a Subsonic-compatible API, and Subsonic can subsequently serve a JSON API. Jamstash would then have to connect to Subsonic's port. We can get it to work that way.

But it's a bit of a workaround. Generally, it'd be great if Jamstash could also work with Ampache!

@arielelkin
Copy link
Author

transferred to #237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants