X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ad5d3e1cd5fcccb767ab80d079c7321bf41908c2..a8719d3ebeae52ab2e0586a0ebb56a0c448a439e:/cookbooks/web/recipes/cgimap.rb?ds=sidebyside diff --git a/cookbooks/web/recipes/cgimap.rb b/cookbooks/web/recipes/cgimap.rb index 8a8a7de1c..d36550684 100644 --- a/cookbooks/web/recipes/cgimap.rb +++ b/cookbooks/web/recipes/cgimap.rb @@ -32,6 +32,7 @@ database_host = node[:web][:readonly_database_host] || node[:web][:database_host memcached_servers = node[:web][:memcached_servers] || [] cgimap_options = { + "CGIMAP_SOCKET" => "/run/cgimap/socket", "CGIMAP_HOST" => database_host, "CGIMAP_DBNAME" => "openstreetmap", "CGIMAP_USERNAME" => "cgimap", @@ -61,8 +62,11 @@ systemd_service "cgimap" do type "forking" environment_file cgimap_options user "rails" - exec_start "/usr/bin/openstreetmap-cgimap --daemon --port 8000 --instances 30" + group "www-data" + umask "0002" + exec_start "/usr/bin/openstreetmap-cgimap --daemon --instances 30" exec_reload "/bin/kill -HUP $MAINPID" + runtime_directory "cgimap" private_tmp true private_devices true protect_system "full"