From 3a0a22b9f0b96cbf387bedf11d5dec8bcaaa0b94 Mon Sep 17 00:00:00 2001 From: Luke Mckechnie Date: Mon, 17 Feb 2025 09:39:19 -0600 Subject: [PATCH 1/3] Update health-check.js to allow unauthorized certs --- packages/sync-server/src/scripts/health-check.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/sync-server/src/scripts/health-check.js b/packages/sync-server/src/scripts/health-check.js index dfbec31525d..d22e4b709ea 100644 --- a/packages/sync-server/src/scripts/health-check.js +++ b/packages/sync-server/src/scripts/health-check.js @@ -5,7 +5,14 @@ import { config } from '../load-config.js'; const protocol = config.https ? 'https' : 'http'; const hostname = config.hostname === '::' ? 'localhost' : config.hostname; -fetch(`${protocol}://${hostname}:${config.port}/health`) +fetch(`${protocol}://${hostname}:${config.port}/health`, { + headers: { + 'X-Forwarded-Proto': protocol, + }, + rejectUnauthorized: false, + strict: true, + localResolveHosts: true +}) .then(res => res.json()) .then(res => { if (res.status !== 'UP') { From 72028f148678d712247787e7ae294636200e967d Mon Sep 17 00:00:00 2001 From: Luke Mckechnie Date: Mon, 17 Feb 2025 10:01:04 -0600 Subject: [PATCH 2/3] Create 4395.md --- upcoming-release-notes/4395.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 upcoming-release-notes/4395.md diff --git a/upcoming-release-notes/4395.md b/upcoming-release-notes/4395.md new file mode 100644 index 00000000000..291285a883d --- /dev/null +++ b/upcoming-release-notes/4395.md @@ -0,0 +1,6 @@ +--- +category: Features +authors: galamdring +--- + +Update health-check.js script to allow for unauthorized certs. From 7991520e87e4724b4bc5be1aaa0d77f07ec18bf0 Mon Sep 17 00:00:00 2001 From: Luke Mckechnie Date: Mon, 17 Feb 2025 10:03:11 -0600 Subject: [PATCH 3/3] Update 4395.md --- upcoming-release-notes/4395.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upcoming-release-notes/4395.md b/upcoming-release-notes/4395.md index 291285a883d..15243099151 100644 --- a/upcoming-release-notes/4395.md +++ b/upcoming-release-notes/4395.md @@ -1,6 +1,6 @@ --- category: Features -authors: galamdring +authors: [galamdring] --- Update health-check.js script to allow for unauthorized certs.