mirror of https://github.com/jetkvm/kvm.git
feat(config): add backlight control settings
This commit is contained in:
parent
3271a1796b
commit
4fd8b1e6ff
|
@ -22,6 +22,9 @@ type Config struct {
|
|||
LocalAuthToken string `json:"local_auth_token"`
|
||||
LocalAuthMode string `json:"localAuthMode"` //TODO: fix it with migration
|
||||
WakeOnLanDevices []WakeOnLanDevice `json:"wake_on_lan_devices"`
|
||||
DisplayMaxBrightness int `json:"display_max_brightness"`
|
||||
DisplayDimAfterMs int64 `json:"display_dim_after_ms"`
|
||||
DisplayOffAfterMs int64 `json:"display_off_after_ms"`
|
||||
}
|
||||
|
||||
const configPath = "/userdata/kvm_config.json"
|
||||
|
@ -29,6 +32,9 @@ const configPath = "/userdata/kvm_config.json"
|
|||
var defaultConfig = &Config{
|
||||
CloudURL: "https://api.jetkvm.com",
|
||||
AutoUpdateEnabled: true, // Set a default value
|
||||
DisplayMaxBrightness: 100,
|
||||
DisplayDimAfterMs: 0,
|
||||
DisplayOffAfterMs: 0,
|
||||
}
|
||||
|
||||
var config *Config
|
||||
|
|
Loading…
Reference in New Issue