restlet / restlet-framework-java

The first REST API framework for Java
https://restlet.talend.com
646 stars 284 forks source link

How to configure org.restlet.Server to add ForwardedRequestCustomizer to the Jetty server? #1391

Open KevinDyer-3DS opened 2 years ago

KevinDyer-3DS commented 2 years ago

I'm working on a configuration of restlet where the instance is running behind a load balancer. The load balancer is connecting to the restlet server via HTTP but the client is connecting to the LB via HTTPS. The LB is sending down the normal X-Forwarded-XXX (port, proto, host, servername, for) as new HTTP headers. Currently when the restlet server is using request.sendRedirect the location header is being written by the contain as http://localServerName:localPort/