# 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:** 7

<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:24pm UTC](https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153/7 "2022-03-28T14:24:08Z")

</div>

> [@helmi](#):
>
> I thought I could set it on runtime first. So I need to set it on app.yml first to then be able to modify it on runtime?

No runtime changes, only via the ENV.

> [@helmi](#):
>
> Any hints about the syntax

It’s a Ruby Regex object, see [https://rubular.com/](https://rubular.com/)

> [@helmi](#):
>
> Can this just be
> 
> ```plaintext
> DISCOURSE_PROMETHEUS_TRUSTED_IP_ALLOWLIST_REGEX: 123.145.167.189
> 
> ```

Yes, that works.

---

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