reverseproxy: Fix panic when TLS is not configured (#4848)
reverseproxy: Fix panic when TLS is not configured (#4848)

* reverseproxy: Fix panic when TLS is not configured

* Refactor and simplify setScheme

Co-authored-by: Matthew Holt <6e15340bc34d98c823445cca0475cc9127379d4b@users.noreply.github.com>
l3dlp/caddy,l3dlp/caddy,l3dlp/caddy