@@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};
1010
1111use super :: {
1212 GoogleCseConfig , HsmConfig , HttpConfig , IdpAuthConfig , KmipPolicyConfig , MainDBConfig ,
13- WorkspaceConfig , logging:: LoggingConfig , ui_config:: UiConfig ,
13+ NotificationsConfig , WorkspaceConfig , logging:: LoggingConfig , ui_config:: UiConfig ,
1414} ;
1515use crate :: {
1616 config:: { AzureEkmConfig , ProxyConfig , SocketServerConfig , TlsConfig } ,
@@ -71,6 +71,7 @@ impl Default for ClapConfig {
7171 kmip_policy : KmipPolicyConfig :: default ( ) ,
7272 azure_ekm_config : AzureEkmConfig :: default ( ) ,
7373 auto_rotation_check_interval_secs : 0 ,
74+ notifications : NotificationsConfig :: default ( ) ,
7475 }
7576 }
7677}
@@ -219,6 +220,11 @@ pub struct ClapConfig {
219220 /// Set to 0 (default) to disable the auto-rotation background task.
220221 #[ clap( long, default_value = "0" , verbatim_doc_comment) ]
221222 pub auto_rotation_check_interval_secs : u64 ,
223+
224+ /// Notification settings (SMTP, renewal warnings).
225+ #[ clap( flatten) ]
226+ #[ serde( default ) ]
227+ pub notifications : NotificationsConfig ,
222228}
223229
224230impl ClapConfig {
@@ -661,6 +667,7 @@ impl fmt::Debug for ClapConfig {
661667 "auto_rotation_check_interval_secs" ,
662668 & self . auto_rotation_check_interval_secs ,
663669 ) ;
670+ let x = x. field ( "notifications" , & self . notifications ) ;
664671
665672 x. finish ( )
666673 }
0 commit comments