# app.yml의 allowlist에 사용할 올바른 REGEX는 무엇인가요?

**URL:** <https://meta.discourse.org/t/whats-the-correct-regex-for-the-allowlist-in-app-yml/265020>\
**Category:** Self-hosting\
**Tags:** prometheus\
**Created:** [2월 22, 2021, 7:01오전 UTC](https://meta.discourse.org/t/whats-the-correct-regex-for-the-allowlist-in-app-yml/265020 "2021-02-22T07:01:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dschaper](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dschaper/32/209535_2.png) [@dschaper](https://meta.discourse.org/u/dschaper)\
**Post date:** [3월 2, 2021, 5:44오전 UTC](https://meta.discourse.org/t/whats-the-correct-regex-for-the-allowlist-in-app-yml/265020/4 "2021-03-02T05:44:20Z")

</div>

> [@sam](#):
>
> 다만 `.`을 이스케이프하고 `^`와 `$`를 추가하는 것이 좋을 수 있습니다.

`containers/<container>.conf`에서 컨테이너 환경으로 변환되는 과정에서 `$`가 이스케이프되는 것 같습니다.

컨테이너 설정:

```conf
  ## Allowed IPs for Prometheus metrics
  DISCOURSE_PROMETHEUS_TRUSTED_IP_ALLOWLIST_REGEX: "^10.20.20.5$"

```

컨테이너 환경.

```plaintext
declare -x DISCOURSE_PROMETHEUS_TRUSTED_IP_ALLOWLIST_REGEX="^10.20.20.5\$"

```

---

_[View the full topic](https://meta.discourse.org/t/whats-the-correct-regex-for-the-allowlist-in-app-yml/265020)._
