-
-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Let's say a user wants to run an additional service, e.g. KasmVNC, in their web container for some reason, and expose it on port 8444. With this add-on replacing the web container at https://DDEV_PROJECT.DDEV_TLD:8444 the URL provided in ddev describe would not work. Instead the user would need know/remember to go to https://novarnish.DDEV_PROJECT.DDEV_TLD:8444. We've got a solution in place for mailpit on port 8025 where Varnish listens on that port and redirects in the default,.vcl. I don't think that would scale to an arbitrary number of ports though. I think it would be great it we could do something more general either automatically or provide some documentation on how to approach it.
I've just run into this issue myself so have not got a solution to suggest yet. Perhaps we can have something very simple listen on the web_extra_exposed_ports if that can be read or some ports specified in .ddev/docker-compose.varnish_extras.yaml on the Varnish container and just do redirects.