How to disable TLS in websocket connections server

I am deploying a websocket server on, but I need my server to accept connections without tls handshakes as well from websocket clients.
The server is deployed successfully and works perfectly well for tls-handshake connections. While, my websocket server implementation accepts connections without tls handshakes on my local machine, the deployed server does not accept connections without a tls handshake.
Here is my fly.toml :

# fly.toml file generated for quiet-star-6957 on 2023-03-16T18:59:11+05:30

app = "quiet-star-6957"
primary_region = "bos"

  dockerfile = "Dockerfile"
  internal_port = 8080
  protocol = "tcp"
    hard_limit = 25
    soft_limit = 20

    force_https = true
    handlers = ["http"]
    port = "80"

    handlers = ["tls", "http"]
    port = "443"

    interval = 10000
    timeout = 2000

Maybe try removing force_https = true from port 80 configuration?

1 Like

@megafinz Nope, still the same. The server rejects the requests which lack tls at the start.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.