# Nginx not listen on IPv6 if not use HTTPS

**URL:** <https://meta.discourse.org/t/nginx-not-listen-on-ipv6-if-not-use-https/228050>\
**Category:** Self-hosting\
**Created:** [May 25, 2022, 7:40am UTC](https://meta.discourse.org/t/nginx-not-listen-on-ipv6-if-not-use-https/228050 "2022-05-25T07:40:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![topological](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@topological](https://meta.discourse.org/u/topological)\
**Post date:** [May 25, 2022, 11:20am UTC](https://meta.discourse.org/t/nginx-not-listen-on-ipv6-if-not-use-https/228050/3 "2022-05-25T11:20:28Z")

</div>

Yes, I tried to add to `app.yml` like this and it works.

```plaintext
hooks:
  after_web_config:
    - replace:
        filename: "/etc/nginx/conf.d/discourse.conf"
        from: /listen.+$/
        to: |
          listen 80;
          listen [::]:80;

```

---

_[View the full topic](https://meta.discourse.org/t/nginx-not-listen-on-ipv6-if-not-use-https/228050)._
