This commit is contained in:
2026-06-30 01:49:11 -03:00
parent 52c93d2cd5
commit b1572c029e
5 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ impl Config {
.unwrap_or_else(|| read_env("RTSP_QUEUE_NAME", "camfinder:rtsp:queue")),
redis_input_csv: cli
.redis_input_csv
.unwrap_or_else(|| read_env("RTSP_INPUT_CSV", "camfinder-open-rtsp.csv")),
.unwrap_or_else(|| read_env("RTSP_INPUT_CSV", "/app/camfinder-open-rtsp.csv")),
redis_worker_count: cli
.redis_worker_count
.or_else(|| parse_usize("RTSP_WORKER_COUNT", 2).ok())
@@ -463,7 +463,7 @@ fn load_rtsp_paths(file: Option<&Path>, inline: Option<&str>) -> Result<Vec<Stri
}
}
load_rtsp_paths_from_file(Path::new("rtsp_paths.txt"))
load_rtsp_paths_from_file(Path::new("/app/rtsp_paths.txt"))
}
fn load_rtsp_paths_from_file(file: &Path) -> Result<Vec<String>> {
+1 -1
View File
@@ -79,7 +79,7 @@ pub async fn run_redis_worker(
let mut processed = 0usize;
let mut captured = 0usize;
let paths = normalize_paths(&config.rtsp_paths);
let credentials = load_rtsp_credentials(Path::new("main_ids.json"))?;
let credentials = load_rtsp_credentials(Path::new("/app/main_ids.json"))?;
println!(
"worker pronto para {} paths, {} credenciais e fila {}",