create-astram-app 0.12.4 → 0.12.6
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": "create-astram-app",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Scaffolder for a new Astram app — emits a running, framework-enforced NestJS server (deny-by-default, built-in auth/identity to switch on) and, with --with-frontend, a React admin/auth UI, over the immutable @astram/* framework packages.",
|
|
6
6
|
"type": "module",
|
|
@@ -33,6 +33,16 @@ NODE_ENV=development
|
|
|
33
33
|
# POOL_MAX_SCHEMA_SVC=5
|
|
34
34
|
# Engine pool (identity/RecordEngine). Unset ⇒ APP_DB_MAX_CONNECTIONS, else 10; set it explicitly.
|
|
35
35
|
# POOL_MAX_ENGINE=10
|
|
36
|
+
# The budget also counts 1 connection per worker for the audit sealer's own pool (auth on).
|
|
37
|
+
# The POOL_MAX_* values are caps: a pool grows to its cap under load and, once idle, shrinks
|
|
38
|
+
# back to POOL_MIN_IDLE after POOL_IDLE_TIMEOUT_S. These apply to every framework pool.
|
|
39
|
+
# POOL_MIN_IDLE=1
|
|
40
|
+
# POOL_IDLE_TIMEOUT_S=600
|
|
41
|
+
# Optional: abort any statement running longer than this (ms, 1000–3600000; off when unset).
|
|
42
|
+
# The framework's own lock waits and the audit sealer are exempt.
|
|
43
|
+
# APP_DB_QUERY_TIMEOUT_MS=30000
|
|
44
|
+
# Optional: log a connection checked out longer than this (ms, 1000–600000; off when unset).
|
|
45
|
+
# POOL_LEAK_DETECTION_MS=60000
|
|
36
46
|
|
|
37
47
|
# --- OPTIONAL: real authentication (only if you set ShieldModule.forRoot({ auth: true })) ---
|
|
38
48
|
# Auth needs a live MariaDB + Redis and a refresh-token HMAC key. These are
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@astram/core": "1.12.0",
|
|
25
|
-
"@astram/engine": "0.
|
|
26
|
-
"@astram/guard": "0.
|
|
25
|
+
"@astram/engine": "0.15.0",
|
|
26
|
+
"@astram/guard": "0.22.0",
|
|
27
27
|
"@astram/guide": "^0.2.8",
|
|
28
|
-
"@astram/identity": "0.18.
|
|
29
|
-
"@astram/messaging": "0.1.
|
|
28
|
+
"@astram/identity": "0.18.2",
|
|
29
|
+
"@astram/messaging": "0.1.7",
|
|
30
30
|
"@astram/migrate": "0.7.2",
|
|
31
31
|
"@astram/sdk": "^0.2.0",
|
|
32
32
|
"@nestjs/common": "^11.2.7",
|
|
@@ -23,6 +23,11 @@ export async function bootstrap(): Promise<void> {
|
|
|
23
23
|
const { AppModule } = await import('./app.module');
|
|
24
24
|
const config = loadAppConfig();
|
|
25
25
|
const app = await NestFactory.create<NestExpressApplication>(AppModule, { bufferLogs: false });
|
|
26
|
+
// On SIGTERM/SIGINT (PM2 restart, deploy) run the framework's shutdown hooks: background jobs
|
|
27
|
+
// stop, the HTTP server finishes its in-flight requests, then every DB pool and Redis client
|
|
28
|
+
// closes. Without this line Node exits with no hook run. Give your process manager a stop
|
|
29
|
+
// timeout above the shutdown time (PM2 `kill_timeout`, e.g. 5000 ms; its default is 1600 ms).
|
|
30
|
+
app.enableShutdownHooks();
|
|
26
31
|
// TRUST_PROXY = the number of reverse-proxy hops in front of this app: 0 = no proxy
|
|
27
32
|
// (exposed directly), 1 = behind the Astram Traefik. It must be your REAL hop count:
|
|
28
33
|
// too high and a client can spoof its IP via X-Forwarded-For; too low and every client
|