]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/forum/recipes/default.rb
Switch forum to use a custom FPM pool with prometheus monitoring
[chef.git] / cookbooks / forum / recipes / default.rb
index 826310f737ef2ea820e154685b94d5a14c78257b..728408a0c8d7e91e2be06398fba86a4ed0a67ada 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"
 
 cache_dir = Chef::Config[:file_cache_path]
 
@@ -43,6 +43,12 @@ ssl_certificate "forum.openstreetmap.org" do
   notifies :reload, "service[apache2]"
 end
 
+php_fpm "forum.openstreetmap.org" do
+  php_admin_values "open_basedir" => "/srv/forum.openstreetmap.org/html/:/usr/share/php/:/tmp/",
+                   "disable_functions" => "exec,shell_exec,system,passthru,popen,proc_open"
+  prometheus_port 9253
+end
+
 apache_site "forum.openstreetmap.org" do
   template "apache.erb"
 end