Skip to content

Commit 8976ad6

Browse files
committed
community: fix port 80 not being IPv6 enabled
1 parent 54d0b9b commit 8976ad6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cookbooks/community/templates/default/web_only.yml.erb

+3-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ hooks:
129129
run:
130130
- replace:
131131
filename: "/etc/nginx/conf.d/discourse.conf"
132-
from: /return 301.+/
132+
from: /listen 80;/
133133
to: |
134+
listen 80;
135+
listen [::]:80;
134136
rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent;
135-
return 301 https://$$ENV_DISCOURSE_HOSTNAME$request_uri;

0 commit comments

Comments
 (0)