Hacker News new | past | comments | ask | show | jobs | submit login

You'll need [services] to accept public TCP traffic, just set `handlers = []` to turn off our TLS and HTTP layers. We do run a proxy so we definitely mess with your TCP traffic! You can enable PROXY protocol to get some of the original connection info (ip, port, etc): https://fly.io/docs/reference/services/#proxy-protocol



Yup i've tried that but sadly the curl command that works on my machine fails with `curl: (35) error:0A000126:SSL routines::unexpected eof while reading` on fly.io

Locally I run with docker run -p 8888:8888, so I assume the correct thing to do when deploying on fly is to build the image with EXPOSE 8888 in the docker file, and set the service internal_port = 8888 in fly.toml. Have I assumed this correctly?


You do need the internal_port, you don't need `EXPOSE` though. Will you post your config file at https://community.fly.io so we can have a closer look?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: