@selvajs/cli 4.21.0-beta.11 → 4.21.0-beta.13
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 +1 -1
- package/src/generated/config.js +30 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selvajs/cli",
|
|
3
|
-
"version": "4.21.0-beta.
|
|
3
|
+
"version": "4.21.0-beta.13",
|
|
4
4
|
"description": "Scaffold and operate a Selva white-label deployment. `npx @selvajs/cli <dir>` to bootstrap, `selva <cmd>` to manage.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "VektorNode",
|
package/src/generated/config.js
CHANGED
|
@@ -597,6 +597,34 @@ var COMPUTE_LIMIT_SETTINGS = composeManifest([
|
|
|
597
597
|
description: 'Ask Rhino.Compute to cache solve results server-side.'
|
|
598
598
|
})
|
|
599
599
|
]);
|
|
600
|
+
var retentionDays = (key, label, what, impact) =>
|
|
601
|
+
defineSetting({
|
|
602
|
+
key,
|
|
603
|
+
label,
|
|
604
|
+
type: 'int',
|
|
605
|
+
min: 0,
|
|
606
|
+
default: 0,
|
|
607
|
+
onInvalid: 'fail',
|
|
608
|
+
class: 'setting',
|
|
609
|
+
zero: 'Forever',
|
|
610
|
+
unit: 'days',
|
|
611
|
+
description: `Days ${what} are kept before the daily purge deletes them. 0 keeps them forever.`,
|
|
612
|
+
impact
|
|
613
|
+
});
|
|
614
|
+
var RETENTION_SETTINGS = composeManifest([
|
|
615
|
+
retentionDays(
|
|
616
|
+
'SELVA_AUDIT_RETENTION_DAYS',
|
|
617
|
+
'Keep audit log for',
|
|
618
|
+
'audit events',
|
|
619
|
+
'Older events are gone for good, including who granted instance admin.'
|
|
620
|
+
),
|
|
621
|
+
retentionDays(
|
|
622
|
+
'SELVA_SOLVE_METRICS_RETENTION_DAYS',
|
|
623
|
+
'Keep solve metrics for',
|
|
624
|
+
'solve metrics',
|
|
625
|
+
'Compute usage charts cannot reach back further than this.'
|
|
626
|
+
)
|
|
627
|
+
]);
|
|
600
628
|
var API_TOKEN_RATE_LIMIT_SETTING = tunableInt(
|
|
601
629
|
'API_TOKEN_RATE_LIMIT_MAX',
|
|
602
630
|
600,
|
|
@@ -841,7 +869,8 @@ var ENGINE_SETTINGS = composeManifest([
|
|
|
841
869
|
legacy: { bool: 'exact-true' }
|
|
842
870
|
}),
|
|
843
871
|
COMPUTE_LIMIT_SETTINGS,
|
|
844
|
-
API_TOKEN_RATE_LIMIT_SETTING
|
|
872
|
+
API_TOKEN_RATE_LIMIT_SETTING,
|
|
873
|
+
RETENTION_SETTINGS
|
|
845
874
|
]);
|
|
846
875
|
// ../providers/header-auth/src/config.ts
|
|
847
876
|
var header = (key, fallback, slot) =>
|