Configure proxy settings for load balancers
masterIf your application is running behind a reverse proxy or a load balancer (common in cloud deployments), set :proxy to true in your configuration map. This is critical when using SSL/HTTPS, as it prevents the SSL redirect middleware from entering a redirect loop by allowing it to correctly identify the request scheme.
(assoc secure-site-defaults :proxy true)