From 1a5ead7d42566df67d20b7a946a47b4e457efff1 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 16 May 2024 01:05:10 +0100 Subject: [PATCH] community: workaround https://github.com/discourse/discourse/pull/27040 --- cookbooks/community/templates/default/web_only.yml.erb | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.39.5