@smi-digital/create-smi-app 2.7.0 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smi-digital/create-smi-app",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -41,7 +41,8 @@ services:
41
41
  __APP_NAME__-strapi:
42
42
  condition: service_healthy
43
43
  healthcheck:
44
- test: ["CMD", "wget", "-q", "--spider", "http://localhost:4321"]
44
+ # node-based liveness (image is node:alpine); any HTTP response = server up
45
+ test: ["CMD", "node", "-e", "fetch('http://localhost:4321/').then(() => process.exit(0)).catch(() => process.exit(1))"]
45
46
  interval: 5s
46
47
  timeout: 2s
47
48
  retries: 5
@@ -60,7 +61,9 @@ services:
60
61
  depends_on:
61
62
  - __APP_NAME__-astro
62
63
  healthcheck:
63
- test: ["CMD", "wget", "-q", "--spider", "http://localhost/"]
64
+ # Use 127.0.0.1 (not localhost): the read-only config mount blocks nginx's
65
+ # IPv6 listen, but busybox wget resolves localhost to ::1 first → refused.
66
+ test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/healthz"]
64
67
  interval: 5s
65
68
  timeout: 2s
66
69
  retries: 5
@@ -7,6 +7,15 @@ server {
7
7
  gzip on;
8
8
  gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
9
9
 
10
+ # Liveness endpoint for the container healthcheck. Returns 200 from nginx
11
+ # itself, so health reflects "the proxy is up" rather than the upstream
12
+ # homepage's status code.
13
+ location = /healthz {
14
+ access_log off;
15
+ add_header Content-Type text/plain;
16
+ return 200 "ok\n";
17
+ }
18
+
10
19
  location / {
11
20
  proxy_cache astro_cache;
12
21