config: add email-from to NodeConfig

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
This commit is contained in:
Hannes Laimer 2022-01-03 10:04:53 +01:00 committed by Dietmar Maurer
parent 645d52308b
commit f06b5283b0

View File

@ -7,6 +7,7 @@ use proxmox_schema::{api, ApiStringFormat, ApiType, Updater};
use proxmox_http::ProxyConfig;
use pbs_api_types::EMAIL_SCHEMA;
use pbs_buildcfg::configdir;
use pbs_config::{open_backup_lockfile, BackupLockGuard};
@ -86,6 +87,10 @@ pub struct AcmeConfig {
schema: HTTP_PROXY_SCHEMA,
optional: true,
},
"email-from": {
schema: EMAIL_SCHEMA,
optional: true,
},
},
)]
#[derive(Deserialize, Serialize, Updater)]
@ -113,6 +118,9 @@ pub struct NodeConfig {
#[serde(skip_serializing_if = "Option::is_none")]
pub http_proxy: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub email_from: Option<String>,
}
impl NodeConfig {