By default nginx in the container only listens for IPv4 connections. Some users
want to enable direct IPv6 connectivity to the container either via forwarding
or NAT. This provides an easy method to allow that.
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
+ ## Uncomment the next line to enable the IPv6 listener
+ #- "templates/web.ipv6.template.yml"
- "templates/web.ratelimited.template.yml"
-## Uncomment these two lines if you wish to add Lets Encrypt (https)
+ ## Uncomment these two lines if you wish to add Lets Encrypt (https)
#- "templates/web.ssl.template.yml"
#- "templates/web.letsencrypt.ssl.template.yml"
templates:
- "templates/web.template.yml"
+ ## Uncomment the next line to enable the IPv6 listener
+ #- "templates/web.ipv6.template.yml"
- "templates/web.ratelimited.template.yml"
-## Uncomment these two lines if you wish to add Lets Encrypt (https)
+ ## Uncomment these two lines if you wish to add Lets Encrypt (https)
#- "templates/web.ssl.template.yml"
#- "templates/web.letsencrypt.ssl.template.yml"
--- /dev/null
+run:
+ - exec: echo "Enabling IPv6 listener"
+ - replace:
+ filename: "/etc/nginx/conf.d/discourse.conf"
+ from: listen 80;
+ to: |
+ listen 80;
+ listen [::]:80;