How to put wordpress site behind AWS load balancer
We have an old wordpress site hosted on an AWS EC2 linux server that I am trying to put behind a load balancer so I can use HTTPS and WAF. I am a somewhat experienced sysadmin but am very new to wordpress. I am having trouble getting the content to load over HTTPS while at the same time not getting into a redirect loop between the load balancer and the server.
I have the load balancer setup to talk to the server on port 80 and if WP_SITEURL/WP_HOME is set to http://, I get a bunch of mixed content errors in the chrome dev console because it is trying to load scripts and css over http. If I change WP_SITEURL/WP_HOME to https://, it creates a redirect loop because wordpress keeps trying to redirect the load balancer, which is trying to communicate on port 80, to https.
Is there a way to allow the load balancer to reach the server on port 80 while still having the base URL for resources, scripts, etc, be https?