[READ-ONLY] Mirror of https://github.com/FoxxMD/docker-proxy-filter. Filter the contents of Docker API responses
docker docker-socket-proxy filter
0

Configure Feed

Select the types of activity you want to include in your feed.

make port configurable

FoxxMD (Oct 8, 2025, 12:02 AM UTC) c5c4e268 009bcd1a

+13 -1
+13 -1
src/main.rs
··· 293 293 }, 294 294 }; 295 295 296 + let mut port = 2375; 297 + 298 + match env::var("PORT") { 299 + Ok(val) => { 300 + match val.parse::<u16>() { 301 + Ok(p) => port = p, 302 + Err(e) => warn!("Could not parse PORT to int. Falling back to {}:{} {e}", &port, &e) 303 + } 304 + }, 305 + Err(_) => {}, 306 + }; 307 + 296 308 let cm = AppStateWithContainerMap { 297 309 container_map: Arc::new(Mutex::new(HashMap::<String, Option<String>>::new())) 298 310 }; ··· 309 321 .wrap(web::middleware::Logger::default()) 310 322 .default_service(web::route().to(forward)) 311 323 }) 312 - .bind(("0.0.0.0", 2376))? 324 + .bind(("0.0.0.0", port))? 313 325 .run() 314 326 .await 315 327 }