I’m configuring a Phoenix app behind an AWS Application Load Balancer (ALB). The ALB is doing SSL termination. The Phoenix app is HTTP. If my DNS is : https://my.coolapp.com then how do I configure the Phoenix Endpoint in this case?
config :cool_app, CoolAppWeb.Endpoint,
http: [port: 80],
url: [host: "https://my.coolapp.com", scheme: "http"]
Something like that? Also, do I put “https://my.coolapp.com” into a check_origin on my UserSocket to allow web sockets to work properly?
Client Browser 443 -> ALB -> ALB terminates the certification -> forward traffic to server on port 80 http