X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3c27239e5cbf4a3f550f33ba7cf3b66d6916d12a..32ff132f4a253c6a711ad490643b501d0692e78e:/cookbooks/nominatim/templates/default/nginx.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index df689304c..a44e9382c 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -1,5 +1,5 @@ upstream nominatim_service { - server 127.0.0.1:<%= @pools[:www][:port ]%>; + server unix:/run/php/nominatim.openstreetmap.org.sock; } map $uri $nominatim_script_name { @@ -49,7 +49,7 @@ map $http_referer $missing_referer { geo $whitelisted { default 0; <% @frontends.each do |frontend| -%> -<% frontend.ipaddresses(:role => :external) do |address| -%> +<% frontend.ipaddresses(:role => :external).sort.each do |address| -%> <%= address %> 1; <% end -%> <% end -%>