The links in the AtomPub service document for the Alfresco OpenCMIS server endpoint are currently built entirely from the http request. The protocol, host and port are all taken from the request.
This will break in cases where a proxy is in place, as the service links will in that situation use the local hostname rather than the external one
Instead, we should use a filter (or similar) to wrap the HttpServletRequest for CMIS to instead use the values from the SysAdminParams, which will allow the links to be generated with their external versions.
Longer term, we should also consider allowing the new filter in OpenCMIS 0.7.0 which allows the use of the X-FORWARDED-HOST header to use the host details before the proxy
The Chemistry discussions on this are at <http://firstname.lastname@example.org/msg01759.html>