From 8e966b7cab9aaca8f56ebc92f371f8db0c5303cc Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 13 Oct 2022 19:18:46 +0100 Subject: [PATCH] Send credentials with overpass requests --- cookbooks/web/recipes/rails.rb | 1 + cookbooks/web/resources/rails_port.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cookbooks/web/recipes/rails.rb b/cookbooks/web/recipes/rails.rb index e021f1925..4b59eb00b 100644 --- a/cookbooks/web/recipes/rails.rb +++ b/cookbooks/web/recipes/rails.rb @@ -147,6 +147,7 @@ rails_port "www.openstreetmap.org" do avatar_storage_url "https://openstreetmap-user-avatars.s3.dualstack.eu-west-1.amazonaws.com" trace_image_storage_url "https://openstreetmap-gps-images.s3.dualstack.eu-west-1.amazonaws.com" overpass_url "https://query.openstreetmap.org/query-features" + overpass_credentials true end systemd_service "rails-jobs@" do diff --git a/cookbooks/web/resources/rails_port.rb b/cookbooks/web/resources/rails_port.rb index 16402d243..14a9c0bfb 100644 --- a/cookbooks/web/resources/rails_port.rb +++ b/cookbooks/web/resources/rails_port.rb @@ -55,6 +55,7 @@ property :oauth_key, String property :oauth_application, String property :nominatim_url, String property :overpass_url, String +property :overpass_credentials, [true, false], :default => false property :google_auth_id, String property :google_auth_secret, String property :google_openid_realm, String @@ -306,6 +307,7 @@ action :create do "oauth_application", "nominatim_url", "overpass_url", + "overpass_credentials", "google_auth_id", "google_auth_secret", "google_openid_realm", -- 2.39.5