This commit is contained in:
@@ -36,7 +36,7 @@ async fn main() -> std::io::Result<()> {
|
||||
.app_data(web::Data::new(AppState {
|
||||
db: db.clone(),
|
||||
firmwares_path: PathBuf::from("./fw"),
|
||||
hostname: "127.0.0.1:8282".to_string(),
|
||||
hostname: "0.0.0.0:8282".to_string(),
|
||||
}))
|
||||
.app_data(web::PayloadConfig::new(256 * 1024 * 1024)) //256MB
|
||||
.service(device_telemetry_api::receive_telemetry)
|
||||
|
||||
Reference in New Issue
Block a user