X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/67c2aceb91955ff583c41807759d203a4478e4b1..961669d212a8da9dfe3d6f89e22e794b26f6aa0e:/cookbooks/web/recipes/rails.rb diff --git a/cookbooks/web/recipes/rails.rb b/cookbooks/web/recipes/rails.rb index 90efbb421..725f3b746 100644 --- a/cookbooks/web/recipes/rails.rb +++ b/cookbooks/web/recipes/rails.rb @@ -28,6 +28,13 @@ include_recipe "nodejs" web_passwords = data_bag_item("web", "passwords") db_passwords = data_bag_item("db", "passwords") +ssl_certificate "www.openstreetmap.org" do + domains ["www.openstreetmap.org", "www.osm.org", + "api.openstreetmap.org", "api.osm.org", + "openstreetmap.org", "osm.org"] + notifies :reload, "service[apache2]" +end + nodejs_package "svgo" template "/etc/cron.hourly/passenger" do @@ -112,6 +119,7 @@ systemd_service "api-statistics" do private_network true protect_system "full" protect_home true + no_new_privileges true restart "on-failure" end