Aurora-Print/Core/config/default.rs

19 lines
658 B
Rust

use super::{Config, ServerCfg, ChromeCfg};
pub fn default_config() -> Config {
Config {
server: ServerCfg { port: 8080 },
chrome: ChromeCfg {
path: "".to_string(), // leer => auto-download beim Start
args: vec![
"--headless=new".to_string(),
"--disable-gpu".to_string(),
"--no-sandbox".to_string(),
"--ignore-certificate-errors".to_string(),
"--allow-insecure-localhost".to_string(),
"--disable-features=SSL_ERROR_OVERRIDE_UI".to_string(),
"--test-type".to_string(),
],
},
}
}