Use the internal URI for rest_transport_uri and the external one for web_endpoint_uri.
rest_transport_uri
web_endpoint_uri