]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/forum/recipes/default.rb
Switch forum.osm.org to letsencrypt
[chef.git] / cookbooks / forum / recipes / default.rb
index 907b1f04fb89743bb873e44ad6d9a5e5a6450aa2..7130c17289c08bf39e2f56dc9b342415087bbb3f 100644 (file)
@@ -31,8 +31,10 @@ package "php-apcu"
 apache_module "php7.0"
 apache_module "rewrite"
 
-apache_site "default" do
-  action [:disable]
+ssl_certificate "forum.openstreetmap.org" do
+  domains ["forum.openstreetmap.org", "forum.osm.org"]
+  fallback_certificate "openstreetmap"
+  notifies :reload, "service[apache2]"
 end
 
 apache_site "forum.openstreetmap.org" do
@@ -48,7 +50,7 @@ end
 git "/srv/forum.openstreetmap.org/html/" do
   action :sync
   repository "http://github.com/openstreetmap/openstreetmap-forum.git"
-  revision "openstreetmap"
+  revision "openstreetmap-1.5.10"
   depth 1
   user "forum"
   group "forum"