]> git.openstreetmap.org Git - chef.git/commitdiff
Send credentials with overpass requests
authorTom Hughes <tom@compton.nu>
Thu, 13 Oct 2022 18:18:46 +0000 (19:18 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 13 Oct 2022 18:21:25 +0000 (19:21 +0100)
cookbooks/web/recipes/rails.rb
cookbooks/web/resources/rails_port.rb

index e021f19251e045d141592bfe56ecfb7665dabddc..4b59eb00b5839090af746dee1650267220ad8cb8 100644 (file)
@@ -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
index 16402d243043fb5c724516363fd17ceee541fd93..14a9c0bfb59ba4df2eef721214777b2c487c3d92 100644 (file)
@@ -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",