mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add server flag to disable user custom quiet hours (#11124)
This commit is contained in:
+6
@@ -447,6 +447,12 @@ USER QUIET HOURS SCHEDULE OPTIONS:
|
||||
Allow users to set quiet hours schedules each day for workspaces to avoid
|
||||
workspaces stopping during the day due to template max TTL.
|
||||
|
||||
--allow-custom-quiet-hours bool, $CODER_ALLOW_CUSTOM_QUIET_HOURS (default: true)
|
||||
Allow users to set their own quiet hours schedule for workspaces to
|
||||
stop in (depending on template autostop requirement settings). If
|
||||
false, users can't change their quiet hours schedule and the site
|
||||
default is always used.
|
||||
|
||||
--default-quiet-hours-schedule string, $CODER_QUIET_HOURS_DEFAULT_SCHEDULE (default: CRON_TZ=UTC 0 0 * * *)
|
||||
The default daily cron schedule applied to users that haven't set a
|
||||
custom quiet hours schedule themselves. The quiet hours schedule
|
||||
|
||||
+5
@@ -457,3 +457,8 @@ userQuietHoursSchedule:
|
||||
# comma separated values are not supported).
|
||||
# (default: CRON_TZ=UTC 0 0 * * *, type: string)
|
||||
defaultQuietHoursSchedule: CRON_TZ=UTC 0 0 * * *
|
||||
# Allow users to set their own quiet hours schedule for workspaces to stop in
|
||||
# (depending on template autostop requirement settings). If false, users can't
|
||||
# change their quiet hours schedule and the site default is always used.
|
||||
# (default: true, type: bool)
|
||||
allowCustomQuietHours: true
|
||||
|
||||
Reference in New Issue
Block a user