I submitted a pull request after playing around with this locally to allow
our edge router to rewrite URLs to provide a vanity URL for web actions in
a namespace; it's a handful of lines to the edge nginx configuration file.
It matches the namespace from the server name and rewrites the request to
the fully qualified web action name.

So  https://guest.openwhisk.host/public/index.html
becomes a proxy for
      https://openwhisk.host/api/v1/experimental/web/guest/public/index.html


For added convenience, and by convention:
      https://guest.openwhisk.host becomes a proxy for
      https://openwhisk.host/api/v1/experimental/web/guest/public/index.html

This of course requires DNS resolution or an entry in /etc/hosts for it to
work locally.

For example:
> grep guest /etc/hosts 192.168.99.100  guest.dockerhost

But this makes for a mich nicer URLs even for recording local demos.

https://github.com/openwhisk/openwhisk/pull/1871

-r

Reply via email to