I want to configure redirection from http to https
In Nginx it looks like this:
In the documentation I found only this:
But as I understand it all depends on the parameter “X-Forwarded-Proto” and if it does not, then redirection will not be either.
The option in Nginx as I understand it does not depend on it, how to do the same in Caddy?