http_service.checks.headers

Hi,

Can someone give an example of how to use http_service.checks.headers?

Thanks

Nevermind… just figured it out… Issue was that I was using [[ instead of just [ for the section. Just in case anyone else needs this…

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  [[http_service.checks]]
    grace_period = "3s"
    interval = "30s"
    method = "GET"
    timeout = "2s"
    path = "/healthz"
    [http_service.checks.headers]
      My-Header = "header value"
1 Like

From How To to Questions / Help