# Postgres connection error on 'bundle exec rails c'

**URL:** <https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153>\
**Category:** Self-hosting\
**Created:** [March 28, 2022, 12:24pm UTC](https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153 "2022-03-28T12:24:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [March 28, 2022, 2:06pm UTC](https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153/5 "2022-03-28T14:06:53Z")

</div>

You must set `DISCOURSE_PROMETHEUS_TRUSTED_IP_ALLOWLIST_REGEX` and a ENV variable on your app.yml file.

---

_[View the full topic](https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153)._
