Compare commits
No commits in common. "33fa4bd266cbbe7676c7baa06711f019c2f3f829" and "cad05a66091c5a67a968c41ec27d735ad5e4eaf7" have entirely different histories.
33fa4bd266
...
cad05a6609
|
@ -20,9 +20,6 @@ services:
|
||||||
build:
|
build:
|
||||||
context:
|
context:
|
||||||
./
|
./
|
||||||
image: localhost/haunter
|
|
||||||
environment:
|
|
||||||
- "HAUNTER_DRIVER_URL=${HAUNTER_DRIVER_URL:-http://driver:4444}"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- driver
|
- driver
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -13,15 +13,11 @@ pub struct Conf {
|
||||||
|
|
||||||
impl Conf {
|
impl Conf {
|
||||||
pub fn get_default_conf() -> Conf {
|
pub fn get_default_conf() -> Conf {
|
||||||
let default_driver_url = match std::env::var("HAUNTER_DRIVER_URL") {
|
|
||||||
Err(_) => "http://localhost:4444".to_string(),
|
|
||||||
Ok(v) => v,
|
|
||||||
};
|
|
||||||
return Conf {
|
return Conf {
|
||||||
job_dir: PathBuf::from_str("jobs.d").unwrap(),
|
job_dir: PathBuf::from_str("jobs.d").unwrap(),
|
||||||
output_dir: PathBuf::from_str("results.d").unwrap(),
|
output_dir: PathBuf::from_str("results.d").unwrap(),
|
||||||
check_interval: Duration::new(15*60, 0),
|
check_interval: Duration::new(15*60, 0),
|
||||||
driver_url: default_driver_url,
|
driver_url: String::from_str("http://localhost:4444").unwrap(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue