aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2023-10-03 17:31:40 +0200
committernetworkException <git@nwex.de>2023-10-03 17:31:40 +0200
commit7907a09acc812f857f283d64c988c69d08acd041 (patch)
treeb90797527648ff0d73bd7087b4b95b27938a1fec /src/api/admin
parent8ec6a53b35e5bb742640a77ff282f2474c63af54 (diff)
downloadgarage-7907a09acc812f857f283d64c988c69d08acd041.tar.gz
garage-7907a09acc812f857f283d64c988c69d08acd041.zip
api: allow custom unix bind mode and use 0o220 for admin server
Diffstat (limited to 'src/api/admin')
-rw-r--r--src/api/admin/api_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin/api_server.rs b/src/api/admin/api_server.rs
index 43497bad..6f1e44e5 100644
--- a/src/api/admin/api_server.rs
+++ b/src/api/admin/api_server.rs
@@ -66,7 +66,7 @@ impl AdminApiServer {
) -> Result<(), GarageError> {
let region = self.garage.config.s3_api.s3_region.clone();
ApiServer::new(region, self)
- .run_server(bind_addr, shutdown_signal)
+ .run_server(bind_addr, Some(0o220), shutdown_signal)
.await
}