From: Grant Slater Date: Fri, 7 Feb 2025 05:19:58 +0000 (+0000) Subject: community: fix port 80 not being IPv6 enabled X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/8976ad644be498d72e248408b49375d20315b264?ds=inline;hp=--cc community: fix port 80 not being IPv6 enabled --- 8976ad644be498d72e248408b49375d20315b264 diff --git a/cookbooks/community/templates/default/web_only.yml.erb b/cookbooks/community/templates/default/web_only.yml.erb index cdced0a8a..e7fd3665c 100644 --- a/cookbooks/community/templates/default/web_only.yml.erb +++ b/cookbooks/community/templates/default/web_only.yml.erb @@ -129,7 +129,8 @@ hooks: run: - replace: filename: "/etc/nginx/conf.d/discourse.conf" - from: /return 301.+/ + from: /listen 80;/ to: | + listen 80; + listen [::]:80; rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent; - return 301 https://$$ENV_DISCOURSE_HOSTNAME$request_uri;