]> git.openstreetmap.org Git - chef.git/commitdiff
community: fix port 80 not being IPv6 enabled master
authorGrant Slater <github@firefishy.com>
Fri, 7 Feb 2025 05:19:58 +0000 (05:19 +0000)
committerGrant Slater <github@firefishy.com>
Fri, 7 Feb 2025 05:19:58 +0000 (05:19 +0000)
cookbooks/community/templates/default/web_only.yml.erb

index cdced0a8a349de8cf443dfadf2fa7711819c9191..e7fd3665c8ea173d89c0de46381940744c42a1f9 100644 (file)
@@ -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;