I get an error when I try to use services.http_checks
in my fly.toml
: Error Near line 46 (last key parsed ‘services’): Key ‘services’ was already created and cannot be used as an array.
Services section of fly.toml
for comparison:
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.http_checks]]
grace_period = "10s"
interval = "10s"
method = "get"
path = "/login"
protocol = "http"
timeout = "2s"
[services.http_checks.headers]
Am I missing something? I replaced the previous services.tcp_checks
section with services.http_checks
and now it fails.