X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..8de21e204dc53bb28ad67207c308489f706ff00d:/cookbooks/git/recipes/web.rb?ds=sidebyside 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]"