How can i use nomad config env (${NOMAD_PORT_http}, ${NOMAD_IP_http} )

when i try to used in my nomad job template during the waypoint deploiment some error blocked the flow.

Invalid function argument; Invalid value for “template_path” parameter: template refers to variable “NOMAD_PORT_http” at app.nomad.tpl

but this call has no vars map

my app.nomad.tpl
task “hello-microservice-deploy” {
env {
PORT = “${NOMAD_PORT_http}”
NODE_IP = “${NOMAD_IP_http}”
}

  driver = "docker"

  config {
    image = "${artifact.image}:${artifact.tag}"
    ports = ["http"]
  }
  resources {
    cpu    = 100  // default 100 MHz
    memory = 128  // default 300 MB
  }
}

to launch my service

const PORT = process.env.PORT
.listen(PORT, () => console.log(Listening on ${ PORT }))

do you have any idea, how i can do it to work ?

i follow the tutorial load-balancing-traefik