@smi-digital/create-smi-app 2.7.1 → 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
|
@@ -61,7 +61,9 @@ services:
|
|
|
61
61
|
depends_on:
|
|
62
62
|
- __APP_NAME__-astro
|
|
63
63
|
healthcheck:
|
|
64
|
-
|
|
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"]
|
|
65
67
|
interval: 5s
|
|
66
68
|
timeout: 2s
|
|
67
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
|
|