]> git.openstreetmap.org Git - chef.git/commitdiff
Allow AF_UNIX sockets for cgimap
authorTom Hughes <tom@compton.nu>
Tue, 15 Nov 2022 19:01:35 +0000 (19:01 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 15 Nov 2022 19:01:35 +0000 (19:01 +0000)
cookbooks/dev/recipes/default.rb

index 385c3a002129718c3de06476fead7de0416cb3ae..3da970fbebf2e253af2aab2ca8b870803fd6d200 100644 (file)
@@ -302,6 +302,7 @@ if node[:postgresql][:clusters][:"14/main"]
     exec_start "/srv/%i.apis.dev.openstreetmap.org/cgimap/openstreetmap-cgimap --daemon --port $CGIMAP_PORT --instances 5"
     exec_reload "/bin/kill -HUP $MAINPID"
     sandbox :enable_network => true
+    restrict_address_families "AF_UNIX"
     read_write_paths ["/srv/%i.apis.dev.openstreetmap.org/logs", "/srv/%i.apis.dev.openstreetmap.org/rails/tmp"]
     restart "on-failure"
   end