does Charon support forwarding request to subdomain or am I am doing it wrong?
Forwarding: GET http://localhost:8000/services/api/entities -> 'foo-resources' -> GET https://resources.foo.com/api/entities 404
public CharonConfigurer charonConfigurer() {
var outgoingServer = requestServerNameRewriter().outgoingServers("https://resources.foo.com");
var pathRewriter = regexRequestPathRewriter().paths("/services/(?<path>.*)", "/<path>");
var pathMapper = requestMapping("foo-resources").pathRegex("/services/(?<path>.*)");
return charonConfiguration().add(pathMapper).set(pathRewriter).set(outgoingServer);
}
I am getting the log from Charon as follows. As per the log it is rewriting the path correctly. But getting 404.
I found this https://github.com/mkopylec/charon-spring-boot-starter/pull/123
does Charon support forwarding request to subdomain or am I am doing it wrong?