# Public URL / IP for Postgres Cluster

**URL:** <https://community.fly.io/t/public-url-ip-for-postgres-cluster/1911>\
**Category:** Questions / Help\
**Created:** [July 13, 2021, 9:43pm UTC](https://community.fly.io/t/public-url-ip-for-postgres-cluster/1911 "2021-07-13T21:43:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![shaun](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@shaun](https://community.fly.io/u/shaun)\
**Post date:** [August 5, 2021, 2:55am UTC](https://community.fly.io/t/public-url-ip-for-postgres-cluster/1911/5 "2021-08-05T02:55:45Z")

</div>

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.

```auto
[[services]]
  internal_port = 5432
  protocol = "tcp"

```

1. Specify the external port and handler.

```auto
# 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](https://fly.io/docs/reference/configuration/#the-services-sections)

I hope that helps!

---

_[View the full topic](https://community.fly.io/t/public-url-ip-for-postgres-cluster/1911)._
