From: Grant Slater Date: Thu, 16 May 2024 00:05:10 +0000 (+0100) Subject: community: workaround https://github.com/discourse/discourse/pull/27040 X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/1a5ead7d42566df67d20b7a946a47b4e457efff1 community: workaround https://github.com/discourse/discourse/pull/27040 --- diff --git a/cookbooks/community/templates/default/web_only.yml.erb b/cookbooks/community/templates/default/web_only.yml.erb index 2764f03b7..b4ca5d2cc 100644 --- a/cookbooks/community/templates/default/web_only.yml.erb +++ b/cookbooks/community/templates/default/web_only.yml.erb @@ -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"