I run my site behind a loadbalancer on a non-standard port. When loading up the /metadata page it has my public domain name yet the local port that the app is hosted on, wh
Look here for insights. It is not how to customize /metadata page, but more how to use XHTML to do the same through Hypermedia APIs.