Method getRepositoryInfo() of https://github.com/nuxeo/nuxeo-chemistry/blob/master/nuxeo-opencmis-impl/src/main/java/org/nuxeo/ecm/core/opencmis/impl/server/NuxeoRepository.java uses the following code to setThinClientUri:
repositoryInfo.setThinClientUri(Framework.getProperty(NUXEO_URL_PROP));
This code should be enhanced to handle virtual hosting configurations.