You need to make separate site blocks. One is with your www subdomain which actually handles requests, and the other with the non-www subdomain which redirects to www. This is exactly what the common patterns example shows you how to do.
www.edscloud.org {
reverse_proxy 192.168.15.16
}
edscloud.org {
redir https://www.{host}{uri}
}