]> git.openstreetmap.org Git - chef.git/commitdiff
community: Add custom static atom feed
authorGrant Slater <github@firefishy.com>
Wed, 8 Mar 2023 08:48:19 +0000 (08:48 +0000)
committerGrant Slater <github@firefishy.com>
Wed, 8 Mar 2023 08:57:28 +0000 (08:57 +0000)
Signed-off-by: Grant Slater <github@firefishy.com>
cookbooks/community/recipes/default.rb
cookbooks/community/templates/default/web_only.yml.erb

index 7c4d374a8bae437679c7f74fc2c377620f7d8a83..98dea48368516c0234eb7de6b5f86af78dba0908 100644 (file)
@@ -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"
index 2650ef6cdfa081c95de02f89a42bb20cd4583ad8..eb46dbe37ae1b733a25dd2ef819f4a37e85f812a 100644 (file)
@@ -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