# Failed to connect to database cluster (non-existing domain)

**URL:** <https://community.fly.io/t/failed-to-connect-to-database-cluster-non-existing-domain/1223>\
**Category:** Questions / Help\
**Created:** [April 21, 2021, 1:29pm UTC](https://community.fly.io/t/failed-to-connect-to-database-cluster-non-existing-domain/1223 "2021-04-21T13:29:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kurt](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/kurt/32/43757_2.png) [@kurt](https://community.fly.io/u/kurt)\
**Post date:** [April 21, 2021, 1:33pm UTC](https://community.fly.io/t/failed-to-connect-to-database-cluster-non-existing-domain/1223/2 "2021-04-21T13:33:14Z")

</div>

Hello! We’re working on a guide for this, you need to make your repo config something like this:

```auto
  config :app, App.Repo,
    ssl: false,
    socket_options: [:inet6],
    url: database_url,
    pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")

```

This disabled postgres ssl (which isn’t necessary on Fly, the network is encrypted) and enables IPv6. Will you see if that helps?

---

_[View the full topic](https://community.fly.io/t/failed-to-connect-to-database-cluster-non-existing-domain/1223)._
