]> git.openstreetmap.org Git - chef.git/commitdiff
Deny all https access to the private chef repo
authorTom Hughes <tom@compton.nu>
Sun, 24 Jun 2018 16:04:43 +0000 (17:04 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 24 Jun 2018 16:04:43 +0000 (17:04 +0100)
cookbooks/git/templates/default/apache.erb

index 374ec2cf58c63997af97ad4619390b1c92bf56a7..9ec36f7d85a72d771cdfb238ce1c080c7cd670c9 100644 (file)
         <Location /private>
                   Require ip <%= @private_allowed.sort.join(" ") %>
         </Location>
         <Location /private>
                   Require ip <%= @private_allowed.sort.join(" ") %>
         </Location>
+
+        <Location /private/chef.git>
+                  Require all denied
+        </Location>
 </VirtualHost>
 
 <Directory /usr/lib/git-core>
 </VirtualHost>
 
 <Directory /usr/lib/git-core>