api: allow custom unix bind mode and use 0o220 for admin server

This commit is contained in:
networkException
2023-10-03 17:31:40 +02:00
parent 8ec6a53b35
commit 7907a09acc
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ impl S3ApiServer {
shutdown_signal: impl Future<Output = ()>,
) -> Result<(), GarageError> {
ApiServer::new(s3_region, S3ApiServer { garage })
.run_server(addr, shutdown_signal)
.run_server(addr, None, shutdown_signal)
.await
}