Added Core Features chroium, config,console_ui,headless,webserver,states
This commit is contained in:
parent
4c6c6d572c
commit
c3c60efb81
13 changed files with 688 additions and 0 deletions
19
Core/config/default.rs
Normal file
19
Core/config/default.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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(),
|
||||
],
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue