X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..366f2c3039f3115f856906fc19cc1fbae348fffc:/cookbooks/git/recipes/web.rb diff --git a/cookbooks/git/recipes/web.rb b/cookbooks/git/recipes/web.rb index 7e1f38cc2..bb99e482c 100644 --- a/cookbooks/git/recipes/web.rb +++ b/cookbooks/git/recipes/web.rb @@ -21,6 +21,7 @@ include_recipe "apache" package "gitweb" +apache_module "cgid" apache_module "rewrite" git_site = node[:git][:host] @@ -45,6 +46,13 @@ template "/srv/#{git_site}/robots.txt" do mode "644" end +template "/srv/#{git_site}/indextext.html" do + source "indextext.html.erb" + owner "root" + group "root" + mode "644" +end + ssl_certificate git_site do domains [git_site] + Array(node[:git][:aliases]) notifies :reload, "service[apache2]"