From 0bbdba271be9e42f14b0fbb76c0546cafc7ebbc8 Mon Sep 17 00:00:00 2001 From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:08:21 +0200 Subject: [PATCH] update openstreetmap API URLs (#2287) Co-authored-by: Charly C --- sql/app-conf-defaults.sql | 4 ++-- sql/branch.sql | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 sql/branch.sql diff --git a/sql/app-conf-defaults.sql b/sql/app-conf-defaults.sql index 64fd5eaa9..ecab80742 100644 --- a/sql/app-conf-defaults.sql +++ b/sql/app-conf-defaults.sql @@ -25,8 +25,8 @@ INSERT INTO app_conf (key, value) VALUES ('linuxfr_id', '"c574b5f45ce054a0750a3764b3ff8ff2c9f88fe36611272a0bf5e4e07bd3c0bf"'::jsonb), ('linuxfr_secret', '"8c518595790487015cd0c33be2d04939946f99aad33c86a6af20a99bc749fb3b"'::jsonb), ('log_emails', 'true'::jsonb), - ('openstreetmap_api_url', '"http://www.openstreetmap.org/api/0.6"'::jsonb), - ('openstreetmap_auth_url', '"http://www.openstreetmap.org"'::jsonb), + ('openstreetmap_api_url', '"https://api.openstreetmap.org/api/0.6"'::jsonb), + ('openstreetmap_auth_url', '"https://www.openstreetmap.org"'::jsonb), ('openstreetmap_callback', '"http://127.0.0.1:8339/on/openstreetmap/associate"'::jsonb), ('openstreetmap_id', '"w4eQbkobmMzpkJFwS4tM16a3lq9AFbcoNCKNcGBE"'::jsonb), ('openstreetmap_secret', '"W08UgEhxQnh7nMzB7GfSFcqcwPnZMmKMNyxWdcw4"'::jsonb), diff --git a/sql/branch.sql b/sql/branch.sql new file mode 100644 index 000000000..ce60dbb7d --- /dev/null +++ b/sql/branch.sql @@ -0,0 +1,2 @@ +UPDATE app_conf SET value = '"https://api.openstreetmap.org/api/0.6"'::jsonb WHERE key = 'openstreetmap_api_url'; +UPDATE app_conf SET value = '"https://www.openstreetmap.org"'::jsonb WHERE key = 'openstreetmap_auth_url';