How can I access to endpoint?

Below is my fly.toml.

app = "api-sqlite"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  builder = "heroku/buildpacks:20"

[env]
  PORT = "8080"
  DATABASE_URL = "file:/data/sqlite.db"
  NODE_ENV = "production" # why not working? might be related to `build-time env`

[mounts]
  source="data"
  destination="/data"

[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = "8080"
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    # force_https = true // TODO
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

And I run server by micro -l tcp://0.0.0.0:8080

But I don’t get any response when I send request to hostname below.

Am I missing something?

Thanks.

We had a shortage of IPs during the night and only fixed it this morning. To fix it, you can either allocate an ipv4 with fly ips allocate-v4 or by re-deploying (I think).

2 Likes