spotmop icon indicating copy to clipboard operation
spotmop copied to clipboard

Support for running behind a reverse proxy

Open allo- opened this issue 8 years ago • 0 comments

I tried to run spotmop behind a reverse proxy. This seems quite hard to accomplish. What needs to be done:

  • URLs need to be relative to the current url. Often they are absolute to the server. (Workaround: Use it on a subdomain instead of subfolder)
  • The Port of the server should be used (works mostly, seems to have problems with websockets)
  • HTTPs URLs need to be used if spotmop is requested using https.

But the biggest problem I saw is requesting mopidy at 6681 without a way to configure urls or use rewriting. Either it should request localhost:6681 on serverside or allow to configure a url which can be a reverse proxy to server:6681. Just requesting with the port isn't feasible for such a web-setup, which should NOT expose the server directly.

allo- avatar Sep 24 '17 13:09 allo-