News for hackers. Stuff that matters.
Re:Run Ordinary Rails Apps Globally (2021) by mrkurt on Wednesday January 26, 2022 @10:53AM (#30086982)
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
Re:Run Ordinary Rails Apps Globally (2021) by Jamie9912 on Wednesday January 26, 2022 @11:15AM (#30087338)
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?

Re:Run Ordinary Rails Apps Globally (2021) by mrkurt on Wednesday January 26, 2022 @11:19AM (#30087403)
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?