Postgres for replication only

I know that Fly Postgres can automatically set up to replicate when there’s multiple Postgres DBs in one region. But what I want is to replicate database outside of Fly to one Fly Postgres instance, which is impossible with current Fly Postgres. Is there any good way to achieve this?

You could fork Fly postgres or just use it as a reference while creating your own completely custom setup.