How to config caddy behind aws load balancer (On demand SSL: Caddy behind AWS Load balancers)

I want to run caddy on ec2 behind an aws load balancer.
I don’t know which rules to apply to the load balancer to achieve that.
I tried to forward 80 to ec2 443 and 443 to ec2 443 but not getting any results.
does any one succeed to run on demand ssl for custom domains from load balancer aws to caddy server? and how?

Please fill out the help topic template as per the forum rules.

You must use load balancers in TCP mode (not HTTP mode) so that HTTPS (TLS) requests reach Caddy unmodified.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.