From 37aba89478412d73578fbffc85ab33dbea6f2318 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Sun, 20 Jun 2021 17:56:05 +0200 Subject: [PATCH 01/18] debug dnsmasq --- packages/health-check/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index d2e8e84b..5cdf8c05 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -26,7 +26,7 @@ ENV NODE_ENV production CMD [ "sh", "-c", \ "echo address=/siasky.net/$(node src/whatismyip.js) > /etc/dnsmasq.d/siasky.net.conf ; \ echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\" > /etc/resolv.conf ; \ - dnsmasq ; \ + dnsmasq --log-queries --log-facility=/var/log/dnsmasq.log ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From d78001a992f74d850c151a50ef277b6f4f0119d8 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Sun, 20 Jun 2021 18:11:14 +0200 Subject: [PATCH 02/18] no-resolv --- packages/health-check/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 5cdf8c05..5eaa0362 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -26,7 +26,7 @@ ENV NODE_ENV production CMD [ "sh", "-c", \ "echo address=/siasky.net/$(node src/whatismyip.js) > /etc/dnsmasq.d/siasky.net.conf ; \ echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\" > /etc/resolv.conf ; \ - dnsmasq --log-queries --log-facility=/var/log/dnsmasq.log ; \ + dnsmasq --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From c12d18bcf618dcefd5733f9cafb795d3a4603012 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Sun, 20 Jun 2021 18:55:31 +0200 Subject: [PATCH 03/18] log-debug --- packages/health-check/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 5eaa0362..199514be 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -26,7 +26,7 @@ ENV NODE_ENV production CMD [ "sh", "-c", \ "echo address=/siasky.net/$(node src/whatismyip.js) > /etc/dnsmasq.d/siasky.net.conf ; \ echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\" > /etc/resolv.conf ; \ - dnsmasq --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log ; \ + dnsmasq --log-debug --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From 1f8a553fb08a570519fbb59b1fa3e291b0e3b871 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 22 Jun 2021 13:17:52 +0200 Subject: [PATCH 04/18] use cli --- packages/health-check/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 199514be..d018fd4a 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -24,9 +24,8 @@ ENV NODE_ENV production # 4. start crond in the background # 5. start the health-check api service CMD [ "sh", "-c", \ - "echo address=/siasky.net/$(node src/whatismyip.js) > /etc/dnsmasq.d/siasky.net.conf ; \ - echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\" > /etc/resolv.conf ; \ - dnsmasq --log-debug --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log ; \ + "echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\" > /etc/resolv.conf ; \ + dnsmasq --strict-order --log-debug --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From 59a22db5f0fcbc3c7667ea1255fd779655a7d3b1 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 22 Jun 2021 14:03:07 +0200 Subject: [PATCH 05/18] add ip check to all checks --- packages/health-check/src/checks/critical.js | 7 +++-- .../health-check/src/checks/middleware.js | 29 +++++++++++++++++++ packages/health-check/src/run.js | 4 ++- 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 packages/health-check/src/checks/middleware.js diff --git a/packages/health-check/src/checks/critical.js b/packages/health-check/src/checks/critical.js index afa616e1..8fa62fdf 100644 --- a/packages/health-check/src/checks/critical.js +++ b/packages/health-check/src/checks/critical.js @@ -67,7 +67,7 @@ async function accountWebsiteCheck(done) { // directServerApiAccessCheck returns the basic server api check on direct server address async function directServerApiAccessCheck(done) { if (!process.env.SKYNET_SERVER_API) { - return done({ up: false, info: { message: "SKYNET_SERVER_API env variable not configured" } }); + return done({ up: false, errors: [{ message: "SKYNET_SERVER_API env variable not configured" }] }); } const [portalAccessCheck, serverAccessCheck] = await Promise.all([ @@ -77,13 +77,14 @@ async function directServerApiAccessCheck(done) { if (portalAccessCheck.ip !== serverAccessCheck.ip) { serverAccessCheck.up = false; - serverAccessCheck.info = { + serverAccessCheck.errors = serverAccessCheck.errors ?? []; + serverAccessCheck.errors.push({ message: "Access ip mismatch between portal and server access", response: { portal: { name: process.env.SKYNET_PORTAL_API, ip: portalAccessCheck.ip }, server: { name: process.env.SKYNET_SERVER_API, ip: serverAccessCheck.ip }, }, - }; + }); } return done(serverAccessCheck); diff --git a/packages/health-check/src/checks/middleware.js b/packages/health-check/src/checks/middleware.js new file mode 100644 index 00000000..645eae03 --- /dev/null +++ b/packages/health-check/src/checks/middleware.js @@ -0,0 +1,29 @@ +const got = require("got"); + +const getCurrentAddress = async () => { + try { + const { body } = await got("http://whatismyip.akamai.com"); + if (body) return body; + throw new Error("whatismyip.akamai.com responded with empty body"); + } catch (error) { + console.log(error.message); + return "-- error fetching ip address from whatismyip.akamai.com --"; + } +}; + +module.exports = async function middleware() { + const ip = await getCurrentAddress(); + + return (check) => { + if (check.ip && check.ip !== ip) { + check.up = false; + check.errors = check.errors ?? []; + check.errors.push({ + message: "Response ip was different than current server ip - possibly there was an error with routing request", + data: { response: check.ip, server: ip }, + }); + } + + return check; + }; +}; diff --git a/packages/health-check/src/run.js b/packages/health-check/src/run.js index 26f4c643..36f4319b 100644 --- a/packages/health-check/src/run.js +++ b/packages/health-check/src/run.js @@ -1,4 +1,5 @@ const { getYesterdayISOString } = require("./utils"); +const createMiddleware = require("./checks/middleware"); require("yargs/yargs")(process.argv.slice(2)).command( "$0 ", @@ -27,10 +28,11 @@ require("yargs/yargs")(process.argv.slice(2)).command( const db = require("../src/db"); const checks = require(`../src/checks/${type}`); + const middleware = await createMiddleware(); const entry = { date: new Date().toISOString(), - checks: await Promise.all(checks.map((check) => new Promise(check))), + checks: (await Promise.all(checks.map((check) => new Promise(check)))).map(middleware), }; db.read() // read before writing to make sure no external changes are overwritten From 1042fe3a17597b23ade23d236b6c06b3979fdaaf Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 22 Jun 2021 14:22:17 +0200 Subject: [PATCH 06/18] remove dnsmasq debug info --- packages/health-check/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index d018fd4a..3fd26408 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -18,14 +18,13 @@ COPY cli cli EXPOSE 3100 ENV NODE_ENV production -# 1. alias siasky.net with current server ip to ommit load balancer -# 2. prepend dnsmasq nameserver so it tries to resolve first -# 3. start dnsmasq in the background -# 4. start crond in the background -# 5. start the health-check api service +# 1. prepend dnsmasq nameserver so it tries to resolve first +# 2. start dnsmasq in the background and alias siasky.net with current server ip to ommit load balancer +# 3. start crond in the background +# 4. start the health-check api service CMD [ "sh", "-c", \ "echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\" > /etc/resolv.conf ; \ - dnsmasq --strict-order --log-debug --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) ; \ + dnsmasq --strict-order --no-resolv --address=/siasky.net/$(node src/whatismyip.js) ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From 6657a27e585201569ff4074a2da6a150772dd97c Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 14:19:27 +0200 Subject: [PATCH 07/18] test using dnsmasq as sole resolver --- packages/health-check/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 3fd26408..2acf5dc6 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -23,8 +23,8 @@ ENV NODE_ENV production # 3. start crond in the background # 4. start the health-check api service CMD [ "sh", "-c", \ - "echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\" > /etc/resolv.conf ; \ - dnsmasq --strict-order --no-resolv --address=/siasky.net/$(node src/whatismyip.js) ; \ + "echo -e \"nameserver 127.0.0.1\noptions ndots:0\" > /etc/resolv.conf ; \ + dnsmasq --server=127.0.0.1 --address=/siasky.net/$(node src/whatismyip.js) ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From b382b1a53a15304ddf07ade0cea6337b23061293 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 14:23:28 +0200 Subject: [PATCH 08/18] test using dnsmasq as sole resolver --- packages/health-check/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 2acf5dc6..b7830484 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -24,7 +24,7 @@ ENV NODE_ENV production # 4. start the health-check api service CMD [ "sh", "-c", \ "echo -e \"nameserver 127.0.0.1\noptions ndots:0\" > /etc/resolv.conf ; \ - dnsmasq --server=127.0.0.1 --address=/siasky.net/$(node src/whatismyip.js) ; \ + dnsmasq --server=127.0.0.11 --address=/siasky.net/$(node src/whatismyip.js) ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From 3e34378f3949554e8e197cb5e96ac85abdb2f6df Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 14:24:58 +0200 Subject: [PATCH 09/18] try without no-resolv --- packages/health-check/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index b7830484..7560057e 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -23,8 +23,8 @@ ENV NODE_ENV production # 3. start crond in the background # 4. start the health-check api service CMD [ "sh", "-c", \ - "echo -e \"nameserver 127.0.0.1\noptions ndots:0\" > /etc/resolv.conf ; \ - dnsmasq --server=127.0.0.11 --address=/siasky.net/$(node src/whatismyip.js) ; \ + "echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\" > /etc/resolv.conf ; \ + dnsmasq --strict-order --address=/siasky.net/$(node src/whatismyip.js) ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From 7f7b03757dc7e14de8285c35d3ceabb63e5f0812 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 14:53:33 +0200 Subject: [PATCH 10/18] try increased timeouts --- packages/health-check/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 7560057e..3346da3a 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -23,8 +23,8 @@ ENV NODE_ENV production # 3. start crond in the background # 4. start the health-check api service CMD [ "sh", "-c", \ - "echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\" > /etc/resolv.conf ; \ - dnsmasq --strict-order --address=/siasky.net/$(node src/whatismyip.js) ; \ + "echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\noptions attempts:5\noptions timeout:30\" > /etc/resolv.conf ; \ + dnsmasq --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From 36b93a85ddddd967760d227a2dff4262dc960d23 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 17:45:51 +0200 Subject: [PATCH 11/18] try this --- packages/health-check/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 3346da3a..bb705778 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -23,8 +23,8 @@ ENV NODE_ENV production # 3. start crond in the background # 4. start the health-check api service CMD [ "sh", "-c", \ - "echo -e \"nameserver 127.0.0.1\n$(cat /etc/resolv.conf)\noptions attempts:5\noptions timeout:30\" > /etc/resolv.conf ; \ - dnsmasq --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) ; \ + "echo -e \"nameserver 127.0.0.1\noptions ndots:0\" > /etc/resolv.conf ; \ + dnsmasq --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From 663d8bbcf1487d7993cf48111468e42be5685c16 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 17:53:59 +0200 Subject: [PATCH 12/18] try --- packages/health-check/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index bb705778..4a2d76d9 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -23,8 +23,8 @@ ENV NODE_ENV production # 3. start crond in the background # 4. start the health-check api service CMD [ "sh", "-c", \ - "echo -e \"nameserver 127.0.0.1\noptions ndots:0\" > /etc/resolv.conf ; \ - dnsmasq --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ + "dnsmasq --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ + echo -e \"nameserver 127.0.0.1\noptions ndots:0\" > /etc/resolv.conf ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From 167e4c3ad0a606c5d06b410a8ebb8fcfda23c788 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 17:59:22 +0200 Subject: [PATCH 13/18] try --- packages/health-check/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 4a2d76d9..f48d7722 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -23,8 +23,8 @@ ENV NODE_ENV production # 3. start crond in the background # 4. start the health-check api service CMD [ "sh", "-c", \ - "dnsmasq --no-resolv --log-queries --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ - echo -e \"nameserver 127.0.0.1\noptions ndots:0\" > /etc/resolv.conf ; \ + "dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ + sed -i 's/127.0.0.11/127.0.0.1/g' /etc/resolv.conf ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From e56a98676637dc12649abf347bc445e74257d1f2 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 21:28:47 +0200 Subject: [PATCH 14/18] fix /etc/resolv.conf --- packages/health-check/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index f48d7722..fcc58a53 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -23,8 +23,8 @@ ENV NODE_ENV production # 3. start crond in the background # 4. start the health-check api service CMD [ "sh", "-c", \ - "dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ - sed -i 's/127.0.0.11/127.0.0.1/g' /etc/resolv.conf ; \ + "dnsmasq --strict-order --no-resolv --address=/siasky.net/$(node src/whatismyip.js) ; \ + echo \"$(sed 's/127.0.0.11/127.0.0.1/' /etc/resolv.conf)\" > /etc/resolv.conf ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ ] From e69829be3edf2909baceb4192bceb947a82417f0 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 21:29:26 +0200 Subject: [PATCH 15/18] fix /etc/resolv.conf --- packages/health-check/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index fcc58a53..b88bac8d 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -23,7 +23,7 @@ ENV NODE_ENV production # 3. start crond in the background # 4. start the health-check api service CMD [ "sh", "-c", \ - "dnsmasq --strict-order --no-resolv --address=/siasky.net/$(node src/whatismyip.js) ; \ + "dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ echo \"$(sed 's/127.0.0.11/127.0.0.1/' /etc/resolv.conf)\" > /etc/resolv.conf ; \ crond ; \ node --max-http-header-size=64000 src/index.js" \ From 88238be8253e713e2a8de713a62f008a71337bfb Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 23 Jun 2021 21:35:15 +0200 Subject: [PATCH 16/18] remove extended header size from node --- packages/health-check/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index b88bac8d..99d00b07 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -26,5 +26,5 @@ CMD [ "sh", "-c", \ "dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ echo \"$(sed 's/127.0.0.11/127.0.0.1/' /etc/resolv.conf)\" > /etc/resolv.conf ; \ crond ; \ - node --max-http-header-size=64000 src/index.js" \ + node src/index.js" \ ] From 4d29b2082d978270fb3f16c6cb4638736933da3c Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 24 Jun 2021 11:33:55 +0200 Subject: [PATCH 17/18] amend comments --- packages/health-check/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 99d00b07..741d532f 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -18,9 +18,11 @@ COPY cli cli EXPOSE 3100 ENV NODE_ENV production -# 1. prepend dnsmasq nameserver so it tries to resolve first -# 2. start dnsmasq in the background and alias siasky.net with current server ip to ommit load balancer -# 3. start crond in the background +# 1. start dnsmasq in the backgroundand with: +# - alias to siasky.net with current server ip so it overrides load balancer request +# - default docker nameserver 127.0.0.11 for any other request +# 2. replace docker nameserver with dnsmasq nameserver in /etc/resolv.conf +# 3. start crond in the background to schedule periodic health checks # 4. start the health-check api service CMD [ "sh", "-c", \ "dnsmasq --no-resolv --log-facility=/var/log/dnsmasq.log --address=/siasky.net/$(node src/whatismyip.js) --server=127.0.0.11 ; \ From 60f87f40648cb73cf57cc3f172411663e4d44408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wypch=C5=82o?= Date: Thu, 24 Jun 2021 13:38:14 +0200 Subject: [PATCH 18/18] typo --- packages/health-check/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/health-check/Dockerfile b/packages/health-check/Dockerfile index 741d532f..93903eee 100644 --- a/packages/health-check/Dockerfile +++ b/packages/health-check/Dockerfile @@ -18,7 +18,7 @@ COPY cli cli EXPOSE 3100 ENV NODE_ENV production -# 1. start dnsmasq in the backgroundand with: +# 1. start dnsmasq in the background with: # - alias to siasky.net with current server ip so it overrides load balancer request # - default docker nameserver 127.0.0.11 for any other request # 2. replace docker nameserver with dnsmasq nameserver in /etc/resolv.conf