X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6849641a01a5d2678b6381d72441a3c36c47da63..4e068609184e2ff5ff0e0688568eb5e56fd0c4be:/cookbooks/forum/recipes/default.rb diff --git a/cookbooks/forum/recipes/default.rb b/cookbooks/forum/recipes/default.rb index 826310f73..728408a0c 100644 --- a/cookbooks/forum/recipes/default.rb +++ b/cookbooks/forum/recipes/default.rb @@ -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