]> git.openstreetmap.org Git - chef.git/commitdiff
community: workaround https://github.com/discourse/discourse/pull/27040
authorGrant Slater <github@firefishy.com>
Thu, 16 May 2024 00:05:10 +0000 (01:05 +0100)
committerGrant Slater <github@firefishy.com>
Thu, 16 May 2024 00:05:10 +0000 (01:05 +0100)
cookbooks/community/templates/default/web_only.yml.erb

index 2764f03b7d139aa77c1bc23ab1523b8781acc146..b4ca5d2cc9c7ebf048074ff87315eb7d9bc56c39 100644 (file)
@@ -114,6 +114,11 @@ hooks:
         cd: $home
         cmd:
           - sudo -H -E -u discourse cp /shared/feeds/update-feeds.atom public/update-feeds.atom
+    - exec:
+        # FIXME: Workaround until https://github.com/discourse/discourse/pull/27040 merged
+        cd: $home
+        cmd:
+          - sudo -H -E -u discourse sed -i 's/follow_redirect: false,/follow_redirect: true,/' lib/discourse_ip_info.rb
   after_ssl:
     - replace:
         filename: "/etc/nginx/conf.d/discourse.conf"