Created
February 10, 2018 21:16
-
-
Save fitzoh/bf02e95e92ff5495de55e08dbdba735c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public RouteLocator customRouteLocator(RouteLocatorBuilder builder, SimpleLoggingFilter loggingFilter) { | |
return builder.routes() | |
.route(r -> | |
r.header(FORWARDED_URL, ".*") | |
.and() | |
.header(PROXY_METADATA, ".*") | |
.and() | |
.header(PROXY_SIGNATURE, ".*") | |
.filters(f -> f.add(loggingFilter)) | |
.uri("http://google.com:80")) | |
.build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment