feat(auth-broker): add process healthcheck mode
This commit is contained in:
@@ -625,6 +625,18 @@ fn route(config: &Config, request: Request) {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
if env::args().any(|arg| arg == "--healthcheck") {
|
||||
println!(
|
||||
"{}",
|
||||
json!({
|
||||
"ok": true,
|
||||
"service": "auth-broker",
|
||||
"mode": "process-healthcheck",
|
||||
"credentialValuePrinted": false
|
||||
})
|
||||
);
|
||||
return;
|
||||
}
|
||||
let config = config_from_env();
|
||||
let address = format!("{}:{}", config.host, config.port);
|
||||
let server = Server::http(&address)
|
||||
|
||||
Reference in New Issue
Block a user