From 8976ad644be498d72e248408b49375d20315b264 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 7 Feb 2025 05:19:58 +0000 Subject: [PATCH] community: fix port 80 not being IPv6 enabled --- cookbooks/community/templates/default/web_only.yml.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.5