Public URL / IP for Postgres Cluster

Hey, @vicente,

I apologize for the delayed response!

So there’s two things you will need to do.

  1. Specify your internal port and protocol.
[[services]]
  internal_port = 5432
  protocol = "tcp"
  1. Specify the external port and handler.
# For secure connections
[[services.ports]]
 handlers = ["tls"]
 port = 443

# For insecure connections. 
[[services.ports]]
 handlers = []
 port = 10000

Here’s a link to our configuration docs for more information:
https://fly.io/docs/reference/configuration/#the-services-sections

I hope that helps!

1 Like