I am using Docker (from "official" sources aka package center). I have some containers that expose ports I want to access.
I have setup DSM using a public domain and using ports 80 and 443.
I see that some applications seems to be mounted on different base urls. DSM is using "/" while e.g. Photo Station is using "/photo".
I would like to use "/mycontainer" to proxy the request from DSM to the internal port 13245.
The result should be as follows:
- "/" opens DSM
- "/photo" opens Photo Station
- "/mycontainer" proxies internally to localhost:13245
Is this possible?
The UI provides a feature in the application portal called reverse proxy.
This is where such a setting would be made, but the applyable rules are so simple, that only an incoming ip (of one of your interfaces) and port can be forwarded to another ip and port. Though, i am affraid that's not what you want.
On my root server, I do exactly that with nginx. Nginx is installed on dsm6, but either it acts as a "simple" server to serve web pages or a "stupid" reveres proxy that allows no fine tuning (if the reverse proxy in application portal is using nginx, not sure though). Using the UI there is no way to solve your problem.
You have to access the shell and get your hands dirty in order to takle the problem. Maybee someone in the underground moders or webstation forum solved it already? Did you searched there? Found a link that might describe how to do it: https://medium.com/@yann_ck/synology-le ... 89ed5e2f83