load auth keys on startup

This commit is contained in:
Dietmar Maurer
2019-01-29 17:21:58 +01:00
parent 6c30068ebf
commit d01e2420f7
3 changed files with 56 additions and 1 deletions

View File

@ -7,6 +7,7 @@ use proxmox_backup::api::router::*;
use proxmox_backup::api::config::*;
use proxmox_backup::server::rest::*;
use proxmox_backup::getopts;
use proxmox_backup::auth_helpers::*;
//use failure::*;
use lazy_static::lazy_static;
@ -25,6 +26,9 @@ fn main() {
std::process::exit(-1);
}
let _ = public_auth_key(); // load with lazy_static
let _ = csrf_secret(); // load with lazy_static
let command : Arc<Schema> = StringSchema::new("Command.")
.format(Arc::new(ApiStringFormat::Enum(vec![
"start".into(),