Reverse Proxy Configuration #5373
Replies: 1 comment 2 replies
-
|
The webserver host=self.mass.streams.bind_ip
advertise_addresses=[self.mass.streams.publish_ip]That So keep the reverse-proxy domain in Webserver -> Base URL, and set Streams -> Published IP Address to the machine/container host IP that Sendspin clients should connect to. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I spent the past few days troubleshooting an issue with my MA configuration. Looking on Discord and online, I found little information about my specific problem, and wound up finding the solution to it myself, though I don't quite understand why it works...only that it does. I want to ask about it here partly because I'm the curious type and like to understand things, but mainly in hopes that someone with the same problem may come across this while troubleshooting.
My setup is behind an Apache2 reverse proxy, so when I configured MA for this, I went to
System > Webserver > Base URLand filled in the domain I use to access it. I then went toSystem > Streams > Published IP Addressand did the same. I then restarted MA just to make sure all the settings were loaded.But I found that when I logged in to MA, the web player was not showing up. Looking at the server logs, I found the following error in the console:
Looking up above it, I also found this error:
I know now, that the last step - that is, setting the Published IP Address - is what causes the issue, and that setting that to the local IP of the machine rather than the domain makes both of those errors go away, and restores the web player's functionality. But I remain unsure as to exactly why this happens. It makes sense to me that if the Sendspin server fails to start, an attempt to connect from the browser end would result in that error. It even makes sense to me that the call to
inet_ptonfails, as if the IP passed is indeed0.0.0.0:8927, it's my understanding that the port number should not be included in the address for that function. But why then, would setting the IP there instead of the domain fix it?I appreciate any insight into this. I think MA is quite literally the greatest thing Open Home has created since HA. I want to be able to understand it more.
Beta Was this translation helpful? Give feedback.
All reactions