Configuration.yaml added availabiluty params
This commit is contained in:
parent
cb7aa966e4
commit
6f5b460b94
|
|
@ -646,6 +646,10 @@ ensure_default_config() {
|
||||||
yaml_set_key "$CFG" frontend enabled "true"
|
yaml_set_key "$CFG" frontend enabled "true"
|
||||||
yaml_set_key "$CFG" frontend port "$WEB_PORT_INTERNAL"
|
yaml_set_key "$CFG" frontend port "$WEB_PORT_INTERNAL"
|
||||||
yaml_set_key "$CFG" frontend host "127.0.0.1"
|
yaml_set_key "$CFG" frontend host "127.0.0.1"
|
||||||
|
yaml_set_key "$CFG" advanced log_level "info"
|
||||||
|
yaml_set_key "$CFG" advanced last_seen "epoch"
|
||||||
|
yaml_set_key "$CFG" advanced cache_state "true"
|
||||||
|
yaml_set_key "$CFG" advanced availability "true"
|
||||||
chown "$Z2M_USER:$Z2M_GROUP" "$CFG" || true
|
chown "$Z2M_USER:$Z2M_GROUP" "$CFG" || true
|
||||||
chmod 0640 "$CFG" || true
|
chmod 0640 "$CFG" || true
|
||||||
return 0
|
return 0
|
||||||
|
|
@ -671,6 +675,9 @@ frontend:
|
||||||
|
|
||||||
advanced:
|
advanced:
|
||||||
log_level: info
|
log_level: info
|
||||||
|
last_seen: epoch
|
||||||
|
cache_state: true
|
||||||
|
availability: true
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue