this post was submitted on 23 May 2024
5 points (85.7% liked)

Navidrome Music Server (Unofficial)

288 readers
2 users here now

Navidrome is a free, open source web-based music collection server and streamer. It gives you freedom to listen to your music collection from any browser or mobile device. https://www.navidrome.org

This is an unofficial community. However, we adhear to the official Code Of Conduct set by the Navidrome project.

founded 1 year ago
MODERATORS
 

How can I hide a service behind a proxy with #Apache ?
Like I have @navidrome running on standard port 4533 but I would like to Proxy it behind apache. So when I go to my website(dot)com/music I can reach it (as well with the apps so prolly websockets needs to be configured?).

I'm doing:
ProxyPass /music/ http://127.0.0.1:4533/music/
ProxyPassReverse /music/ http://127.0.0.1:4533/music/

But when i go to mywebsite(dot)com/music it goes to mywebsite(dot)com/app/

WTF?

Apache2 running on #debian

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 5 months ago (11 children)

just to clarify: you can access navidrome under http://127.0.0.1:4533/music/? That part works?

[–] [email protected] 1 points 5 months ago (1 children)

@ryan_harg I access it without /music/
Just localhost:port

[–] [email protected] 1 points 5 months ago* (last edited 5 months ago) (1 children)

but your proxy config redirects to that path. That sounds wrong, then. unless I don't get something here. (my reverse proxy is nginx, so ...)

[–] [email protected] 1 points 5 months ago (1 children)

@ryan_harg I wanted to put the service under mysite/music

The music server works on mysite:port and stop. Can be this the issue?

[–] [email protected] 1 points 5 months ago (1 children)

i think you should loose the path on the right side.

[–] [email protected] 1 points 5 months ago (1 children)
[–] [email protected] 1 points 5 months ago (2 children)

well if navidrome doesn't listen to it, then no. you can still use it on the Apache listening side: example.com/music/ redirecting to http://127.0.0.1:4533/ that is. Give it a try.

[–] [email protected] 2 points 5 months ago (2 children)

@ryan_harg well that was the goal I was trying to achieve... but unfortunately doesn’t work. Prolly with BaseUrl in the navidrome conf I can redirect to /music
Gonna try as soon I got home
Thanks

[–] [email protected] 2 points 5 months ago* (last edited 5 months ago)

@ryan_harg @breadsmasher I found I can configure a parameter on Navidrome settings called BaseUrl that allowed me to activate Navidrome server under /music so now the proxy works. Thanks a lot

[–] [email protected] 1 points 5 months ago (1 children)
[–] [email protected] 2 points 5 months ago

@ryan_harg yes. I changed Navidrome baseUrl to put it on /music and finally the Proxy/ReverseProxy worked

[–] [email protected] 1 points 5 months ago

you could also see if you notice requests arriving in the navidrome logs somewhere...

load more comments (9 replies)