Unfortunately, I need to expose one service that needs to be accessible via HTTP for PXE deployments.
What approach would you recommend to disable the automatic redirect for that single service? I'd like to avoid configuring a non-redirecting HTTP entrypoint on a different port.
Use priority so that a different router with higher priority will serve that single url.
I normally use middlewares to redirect from http to https and attach that to default router on http port. If need to have a url that must be served w/o tls I add a router with high priority that gets caught instad of the default one.
I'm trying to do the same thing as @ginkel for a similar reason. But I am encountering a problem.
Is it possible that, doing so*, for every endpoint that I want to redirect to https I need to maintain two different routes for every interested endpoint? That is one for http @ port 80, without the tls option, redirecting (using the middleware you were talking about) to the one for https @ port 443 with the tls option ?
Doing so means that I have to pay attention at two routers for every thing. Am I wrong?
I'm not interested in global redirection. I was talking about "All services will be redirected to https to port 443 except one listening on http on port 80". As the title of this thread says.
Having said that, I invite you to re-read my post above about maintaining to routes for every services using the middleware as you talked before.
Do I need two routes for every services that need to be redirected to https doing so?