]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/donate/recipes/default.rb
Enable networing for matomo archiver
[chef.git] / cookbooks / donate / recipes / default.rb
index ca38efbb11b3add0e0d342e9dc0e754b0d83f174..7389db3cf7297af4a8f78a7c320d2712b7fc8646 100644 (file)
@@ -21,7 +21,7 @@ include_recipe "accounts"
 include_recipe "apache"
 include_recipe "git"
 include_recipe "mysql"
-include_recipe "php::apache"
+include_recipe "php::fpm"
 
 package %w[
   php-cli
@@ -31,6 +31,8 @@ package %w[
 ]
 
 apache_module "headers"
+apache_module "proxy"
+apache_module "proxy_fcgi"
 
 passwords = data_bag_item("donate", "passwords")
 
@@ -78,6 +80,12 @@ ssl_certificate "donate.openstreetmap.org" do
   notifies :reload, "service[apache2]"
 end
 
+php_fpm "donate.openstreetmap.org" do
+  php_admin_values "open_basedir" => "/srv/donate.openstreetmap.org/:/usr/share/php/:/tmp/",
+                   "disable_functions" => "exec,shell_exec,system,passthru,popen,proc_open"
+  prometheus_port 11101
+end
+
 apache_site "donate.openstreetmap.org" do
   template "apache.erb"
 end