mount: when outside cluster network, use filer as proxy to access volume servers

This commit is contained in:
Chris Lu
2021-01-24 01:41:38 -08:00
parent ccbdb38c89
commit 096e088d7b
15 changed files with 29 additions and 41 deletions

View File

@@ -50,9 +50,6 @@ func (s3a *S3ApiServer) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) err
}, s3a.option.FilerGrpcAddress, s3a.option.GrpcDialOption)
}
func (s3a *S3ApiServer) AdjustedUrl(location *filer_pb.Location) string {
return location.Url
}
// If none of the http routes match respond with MethodNotAllowed
func notFoundHandler(w http.ResponseWriter, r *http.Request) {