From 72891676f068a1b1b3d97be61978b76e19e146ca Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 1 Oct 2021 19:03:03 +0000 Subject: [PATCH 1/4] Update dependency @types/node-cron to ^2.0.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 09dcecc..36e8b07 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@nguniversal/express-engine": "^12.1.0", "@ngx-translate/core": "^13.0.0", "@ngx-translate/http-loader": "^6.0.0", - "@types/node-cron": "^2.0.4", + "@types/node-cron": "^2.0.5", "bootstrap": "^4.6.0", "cron": "^1.8.2", "dayjs": "^1.10.7", From 915dedb8276ca89410cfca5068bedb1b1ef57664 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Thu, 28 Oct 2021 00:29:51 +0200 Subject: [PATCH 2/4] minor caching improvement --- src/main.status.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.status.ts b/src/main.status.ts index a973479..64b3a98 100644 --- a/src/main.status.ts +++ b/src/main.status.ts @@ -79,6 +79,12 @@ api.post('/update/health', (req, res) => { return res.status(401).send('invalid token'); } const serviceId = req.query.service as string; + if (!config.groups + .map(g => g.services).reduce((x, y) => x.concat(y), []) + .map(s => s.id).includes(serviceId)) { + // TODO remove old caches + return res.send('OK'); + } let services: { id: string, state: string }[] = []; if (serviceId) { services = [{id: serviceId, state: JSONPath({path: serviceStatePaths[serviceId], json: req.body, wrap: false})}]; From ec11b91ce51b82fbe9a18d5b3ae0f3f872776122 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Thu, 28 Oct 2021 12:46:58 +0200 Subject: [PATCH 3/4] fixed Dockerfile --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f729759..b7ff63e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,4 @@ -ARG ARCH -FROM alpine:3.14.2@sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a AS base-amd64 -FROM arm32v7/alpine:3.14.2@sha256:e12ff876f0075740ed3d7bdf788107ae84c1b3dd6dc98b3baea41088aba5236f AS base-arm -FROM arm64v8/alpine:3.14.2@sha256:b06a5cf61b2956088722c4f1b9a6f71dfe95f0b1fe285d44195452b8a1627de7 AS base-arm64 -FROM base-${ARCH} +FROM alpine:3.14.2@sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a RUN apk --no-cache add nodejs="12.22.6-r0" From 41bed5558e753f1b935f9c60f03bd5d5cd1e6c64 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Thu, 28 Oct 2021 17:05:49 +0200 Subject: [PATCH 4/4] fixed Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b7ff63e..cdd1421 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.14.2@sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a -RUN apk --no-cache add nodejs="12.22.6-r0" +RUN apk --no-cache add nodejs="14.18.1-r0" COPY dist/universal-statuspage /universal-statuspage