Skip to content

Commit 386273b

Browse files
committed
util/settings: define free project limitation
1 parent 57a1a68 commit 386273b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/packages/util/db-schema/site-defaults.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export type SiteSettingsKeys =
7474
| "commercial"
7575
| "max_trial_projects"
7676
| "nonfree_countries"
77+
| "limit_free_project_uptime"
7778
| "google_analytics"
7879
| "kucalc"
7980
| "dns"
@@ -564,6 +565,14 @@ export const site_settings_conf: SiteSettings = {
564565
to_val: split_strings,
565566
show: only_cocalc_com,
566567
},
568+
limit_free_project_uptime: {
569+
name: "Limit Free Project Uptime",
570+
desc: "If this number of minutes is >0, then projects running for longer than that must have a license applied, or some upgrade, etc. This exposes a count-down timer in the trial banner. (0 means disabled)",
571+
default: "0",
572+
to_val: to_int,
573+
valid: only_nonneg_int,
574+
show: only_cocalc_com,
575+
},
567576
datastore: {
568577
name: "Datastore",
569578
desc: `Show the '${DATASTORE_TITLE}' panel in the project settings`,

0 commit comments

Comments
 (0)