@@ -8,19 +8,23 @@ use crate::error::WorkerError;
88#[ derive( Debug , Parser , Clone , Deserialize ) ]
99#[ clap( about = "Defguard YubiKey Provisioning service" ) ]
1010pub struct Config {
11- // CA Used for GRPC connection
12- #[ arg( long, env = "GRPC_CA" ) ]
11+ // Path to CA Used for GRPC connection
12+ #[ arg( long = "ca-file" , env = "GRPC_CA" ) ]
1313 pub grpc_ca : Option < PathBuf > ,
14- /// Worker id
15- #[ arg( long, env = "WORKER_ID " , default_value = "YubiBridge " ) ]
14+ /// ID, this will be also displayed in defguard UI
15+ #[ arg( long = "id" , env = "ID " , default_value = "YubikeyProvisioner " ) ]
1616 pub worker_id : String ,
1717
1818 /// Logging level, needs to be compatible with log crate log::LevelFilter::from_str
1919 #[ arg( long, env = "LOG_LEVEL" , default_value = "info" ) ]
2020 pub log_level : String ,
2121
22- /// Url of your DefGuard instance
23- #[ arg( long, env = "URL" , default_value = "http://127.0.0.1:50055" ) ]
22+ /// Url of your DefGuard GRPC server
23+ #[ arg(
24+ long = "grpc" ,
25+ env = "GRPC_URL" ,
26+ default_value = "http://127.0.0.1:50055"
27+ ) ]
2428 pub url : String ,
2529
2630 /// Number of retries in case if there are no keys detected
0 commit comments