From ebf6894fad08763e1dd79383934422ea919beb69 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 8 Mar 2023 08:48:19 +0000 Subject: [PATCH] community: Add custom static atom feed Signed-off-by: Grant Slater --- cookbooks/community/recipes/default.rb | 13 +++++++++++++ .../community/templates/default/web_only.yml.erb | 6 ++++++ 2 files changed, 19 insertions(+) diff --git a/cookbooks/community/recipes/default.rb b/cookbooks/community/recipes/default.rb index 7c4d374a8..98dea4836 100644 --- a/cookbooks/community/recipes/default.rb +++ b/cookbooks/community/recipes/default.rb @@ -42,6 +42,19 @@ directory "/srv/community.openstreetmap.org/shared" do mode "755" end +directory "/srv/community.openstreetmap.org/files" do + owner "community" + group "community" + mode "755" +end + +template "/srv/community.openstreetmap.org/files/update-feeds.atom" do + source "update-feeds.atom.erb" + owner "community" + group "community" + mode "644" +end + git "/srv/community.openstreetmap.org/docker" do action :sync repository "https://github.com/discourse/discourse_docker.git" diff --git a/cookbooks/community/templates/default/web_only.yml.erb b/cookbooks/community/templates/default/web_only.yml.erb index 2650ef6cd..eb46dbe37 100644 --- a/cookbooks/community/templates/default/web_only.yml.erb +++ b/cookbooks/community/templates/default/web_only.yml.erb @@ -65,6 +65,9 @@ env: DISCOURSE_MAXMIND_LICENSE_KEY: '<%= @license_keys[node[:geoipupdate][:account]] %>' <% end -%> + # Increase base SIDEKIQ memory limit to 1GB + UNICORN_SIDEKIQ_MAX_RSS: 1000 + volumes: - volume: host: /srv/community.openstreetmap.org/shared/web-only @@ -78,6 +81,9 @@ volumes: - volume: host: /etc/ssl/private/community.openstreetmap.org.key guest: /shared/ssl/ssl.key + - volume: + host: /srv/community.openstreetmap.org/files/update-feeds.atom + guest: /var/www/discourse/public/update-feeds.atom ## Plugins go here ## see https://meta.discourse.org/t/19157 for details -- 2.39.5