ssl not working

Hi Fly.io team,

My app name is editscape-editing. I am using the default *.fly.dev subdomain and do not have a custom domain. SSL is still not working after many hours (ERR_SSL_PROTOCOL_ERROR). Here is my fly.toml:
app = “editscape-editing”

[build]
dockerfile = “Dockerfile”

[env]
PORT = “5000”

[[services]]
internal_port = 5000
protocol = “tcp”

[[services.ports]]
port = 80

[[services.ports]]
port = 443
Can you please help resolve this?
Thank you!

you need tls/http handlers. the easiest fix would be to replace the whole [[services]] block with http_service.internal_port = 5000, or do the following:

[[services]]
internal_port = 5000
protocol = “tcp”

[[services.ports]]
handlers = ["http"]
port = 80

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

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