My project architecture consists of a load balancer which is configured with SSL. The SSL configuration terminates at load balancer and the request is forwarded to WebServer and AppServer at HTTP. When user first accesses the application, Spring Security tries to redirect to login page using HTTP protocol. Since the load balancer listens at HTTPS, this request fails.
What can I do to ensure that Spring Security uses HTTPS protocol when creating redirect requests considering WebServer will always forward to AppServer on HTTP?
Note: AppServer is Jboss EAP 7.3