How to redirect http to https in nomad

How to I redirect all http to https i.e. all traffic to should get redirected to

My current nomad job tags look like this

                tags = [

I have added the last 2 tags for redirection but it is not working.

You forgot to assign the created middleware to the router:


You could do a global redirect on entrypoint directly, see simple Traefik example.

Note that normally main and sans is used for LetsEncrypt TLS:


@bluepuma77 after adding


i am getting this as error


What error?

From the Docker doc:

       # ...
         # Declaring a middleware
         # Referencing a middleware

Hey, sorry I did not paste the error.

middleware "test-redirectscheme@nomad" does not exist

This is the error.

Looks valid according to the reference.