--
You received this message because you are subscribed to the Google Groups "playone" group.
To unsubscribe from this group and stop receiving emails from it, send an email to playone+u...@googlegroups.com.
To post to this group, send email to pla...@googlegroups.com.
Visit this group at https://groups.google.com/group/playone.
For more options, visit https://groups.google.com/d/optout.
Usually I setup an nginx instance to redirect all HTTP request automatcially to HTTPS and have nginx handle the SSL connection:
On Thu, Oct 13, 2016 at 8:42 PM Xavier NOPRE <xno...@gmail.com> wrote:
Hi,In my controller, in some cases, I need to do a redirection to another action in the controller. In my Java code, calling a "static public" other method in the controller is handled by Play! that respond with an HTTP redirection 301 with the new URL.My problem is that I am using HTTPS protocol, but the redirection is done with an HTTP url.How can I do that Play! do a correct HTTPS redirection ?Thanks for your help !Best regards,Xavier
--
You received this message because you are subscribed to the Google Groups "playone" group.
To unsubscribe from this group and stop receiving emails from it, send an email to playone+unsubscribe@googlegroups.com.
To post to this group, send email to pla...@googlegroups.com.
Visit this group at https://groups.google.com/group/playone.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "playone" group.
To unsubscribe from this group and stop receiving emails from it, send an email to playone+unsubscribe@googlegroups.com.
proxy_set_header x-forwarded-proto https;
@Beforepublic static void setSecuredAndPortInRequestIfNecessary() {final Header xForwardedProtoHeader = request.headers.get("x-forwarded-proto");if (xForwardedProtoHeader != null && "https".equals(xForwardedProtoHeader.value())) {request.secure = true;request.port = 443;}}