diff --git a/Dockerfile b/Dockerfile index 76305d92..fc787e3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -73,9 +73,11 @@ FROM macbre/nginx-brotli:latest AS runner ARG X_TAG WORKDIR /opt/app ENV NODE_ENV=production +ARG PORT=80 +ENV PORT=${PORT} ARG BASE_PATH="/alpha/powerhouse/connect" ENV BASE_PATH=${BASE_PATH} COPY --from=builder /opt/app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf.template -CMD /bin/sh -c "envsubst '\$PORT,\$BASE_PATH' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf" && nginx -g 'daemon off;' \ No newline at end of file +CMD /bin/sh -c "envsubst '\$PORT,\$BASE_PATH' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf" && nginx -g 'daemon off;' diff --git a/nginx.conf b/nginx.conf index 4ab045ac..68e7f60e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -49,4 +49,17 @@ server { expires -1; add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"; } -} \ No newline at end of file + + # Health check endpoints + location /healthz { + access_log off; + return 200 'OK'; + add_header Content-Type text/plain; + } + + location /readiness { + access_log off; + return 200 'OK'; + add_header Content-Type text/plain; + } +} diff --git a/package-lock.json b/package-lock.json index 6c042f8b..809def54 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,9 +13,9 @@ "@sentry/react": "^7.109.0", "@tanstack/react-virtual": "^3.8.1", "did-key-creator": "^1.2.0", - "document-drive": "^1.0.0-alpha.86", + "document-drive": "^1.0.0-alpha.88", "document-model": "1.7.0", - "document-model-libs": "^1.77.0", + "document-model-libs": "^1.78.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", @@ -6848,9 +6848,9 @@ } }, "node_modules/@prisma/client": { - "version": "5.14.0", - "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.14.0.tgz", - "integrity": "sha512-akMSuyvLKeoU4LeyBAUdThP/uhVP3GuLygFE3MlYzaCb3/J8SfsYBE5PkaFuLuVpLyA6sFoW+16z/aPhNAESqg==", + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.17.0.tgz", + "integrity": "sha512-N2tnyKayT0Zf7mHjwEyE8iG7FwTmXDHFZ1GnNhQp0pJUObsuel4ZZ1XwfuAYkq5mRIiC/Kot0kt0tGCfLJ70Jw==", "hasInstallScript": true, "optional": true, "engines": { @@ -15603,12 +15603,12 @@ } }, "node_modules/document-drive": { - "version": "1.0.0-alpha-arb.81", - "resolved": "https://registry.npmjs.org/document-drive/-/document-drive-1.0.0-alpha-arb.81.tgz", - "integrity": "sha512-dEorE7M0NbIL66BqFxdlUQGXGv+zlFzO3crPtd7rNVwbQKl6tIJYAeB+Hf7H/eMXqmBM1JD8I+tYMXwBOXLRuQ==", + "version": "1.0.0-alpha.88", + "resolved": "https://registry.npmjs.org/document-drive/-/document-drive-1.0.0-alpha.88.tgz", + "integrity": "sha512-HwLtyr9wo5Q4c6aMKOK8rFqXO0NZwB07gVljCeCqrromcDekHeQREvYUQaqXlo4RKhQP3dyyzcI6itzS0g5qjQ==", "dependencies": { "exponential-backoff": "^3.1.1", - "graphql": "^16.8.1", + "graphql": "^16.9.0", "graphql-request": "^6.1.0", "json-stringify-deterministic": "^1.0.12", "nanoevents": "^9.0.0", @@ -15616,10 +15616,10 @@ "uuid": "^9.0.1" }, "optionalDependencies": { - "@prisma/client": "5.14.0", + "@prisma/client": "5.17.0", "localforage": "^1.10.0", - "redis": "^4.6.13", - "sequelize": "^6.35.2", + "redis": "^4.6.15", + "sequelize": "^6.37.3", "sqlite3": "^5.1.7" }, "peerDependencies": { @@ -15642,9 +15642,9 @@ } }, "node_modules/document-model-libs": { - "version": "1.77.0", - "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.77.0.tgz", - "integrity": "sha512-SOQfV/k1rSQFCJL4VNy5HFTx+EnVPK7aIJnXJBSKXOWaNLL84h5sjSZ4ji6HJiqOfqZlOXrZWXI0IB238osnMg==", + "version": "1.78.0", + "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.78.0.tgz", + "integrity": "sha512-Hy4BZ1evlgcyrRS4N8bYNTbflOmLstcoM9LT8Br9ZLneATty7GAyC30lW9AEu0GYD2z/zouIzi8zaahru0qilQ==", "dependencies": { "@acaldas/graphql-codegen-typescript-validation-schema": "^0.12.3", "@graphql-codegen/core": "^4.0.2", diff --git a/package.json b/package.json index 915a8a53..c35909e1 100644 --- a/package.json +++ b/package.json @@ -93,9 +93,9 @@ "@sentry/react": "^7.109.0", "@tanstack/react-virtual": "^3.8.1", "did-key-creator": "^1.2.0", - "document-drive": "^1.0.0-alpha.86", + "document-drive": "^1.0.0-alpha.88", "document-model": "1.7.0", - "document-model-libs": "^1.77.0", + "document-model-libs": "^1.78.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0",