I am easily able to redirect all http
traffic to https
, using following args -- it creates a middleware named redirect-web-to-websecure
:
--entrypoints.web.http.redirections.entryPoint.to=websecure
--entrypoints.web.http.redirections.entryPoint.scheme=https
But, I wish to achieve following:
*.example.com
(external traffic) -> redirect http
to https
*.nas.lan
(internal traffic) -> redirect https
to http
(no redirection will also work)
I can achieve this using IngressRoute in a k3s cluster, but I wish to avoid doing this for all the apps/subdomains and would prefer to have a global solution. How can I do that?