Getting Secure Connection Failed Error on my Deploys

Getting SSL PR_END_OF_FILE_ERROR on the app I am trying to deploy. This is the fly.toml config that I am using currently:

The deploy builds successfully but when I try to access the app from the browser I get the above mentioned error.

app = "tg-bot"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[env]
  PORT = "8080"

[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]]
    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 am using Dockerfile to build the image for my app.