|
[Feature Request] Option for overrding presentationUrl in UPNP Device Service XML
|
|
17-07-2023, 07:37
Post: #3
|
|||
|
|||
|
RE: [Feature Request] Option for overrding presentationUrl in UPNP Device Service XML
Ok, let me elaborate, might be more of an XY problem here.
Remember, my main goal is to funnel all access to the web interface through a reverse proxy. If the container is running in host networking mode, there is no way from stopping anyone access the web interface bypassing the reverse proxy (and authentication). So my first attempt was to add a macvlan to the container so that SSDP would still work, but the web interface would only be accessible on the docker internal bridge network. For that I was looking for a setting to bind the webserver to a specific interface (the internal bridge only). That did not exist. So next I tried blocking access to 9790 when the requests was coming over the macvlan network using iptables. That for sure works beautifully, while still allowing access the web interface through the reverse proxy. That was when I found out that content and the web interface are served on the same port and by blocking that port on the macvlan, but SSDP announcing the macvlan's address, I made the whole container non-functioning. These attempts were made while still learning the ins and outs of the container, I realize the sound (and are!) hacky and not ideal. So if you have any suggestions on how to achieve the goal of only allowing access to the webinterface through a reverse proxy, that'd be appreciated. Also, I'm running multiple instances, so having a separate domain for each instance without having to specify a port is real nice. The web interface and content being served on the same port is not a problem per se, since the reverse proxy would be able to distinguish between the two by inspecting the request URL, but that ofc only works if content is served using a domain name, not an IP address. Kind Regards, blindfish |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



