]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/community/templates/default/web_only.yml.erb
imagery: bump za topo cache revision
[chef.git] / 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;