]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/community/recipes/default.rb
Remove old forum code. Add cert to discourse
[chef.git] / cookbooks / community / recipes / default.rb
index 4de0ef820462eb36f66f93e69dcf2648db48d0ff..76b8a97b62333c052d1f9c3b8bfcfc2ff472d5eb 100644 (file)
@@ -42,10 +42,24 @@ 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"
-  revision "13bfcd2517c743e1bc313b8d89631772702ae112"
+  # Revision pin not possible as launch wrapper automatically updates git repo.
+  revision "main"
   depth 1
   user "root"
   group "root"
@@ -82,7 +96,7 @@ template "/srv/community.openstreetmap.org/docker/containers/mail-receiver.yml"
 end
 
 ssl_certificate "community.openstreetmap.org" do
-  domains ["community.openstreetmap.org", "community.osm.org", "communities.openstreetmap.org", "communities.osm.org"]
+  domains ["community.openstreetmap.org", "community.osm.org", "communities.openstreetmap.org", "communities.osm.org", "c.openstreetmap.org", "c.osm.org", "forum.openstreetmap.org", "forum.osm.org"]
   notifies :run, "notify_group[discourse_container_new_web_only]"
   notifies :run, "notify_group[discourse_container_new_mail_receiver]"
 end