mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-05 19:47:47 +01:00
azure: let the blob endpoint be configured (#10460)
* azure: let the blob endpoint be configured The service url was always derived as <account>.blob.core.windows.net, which leaves out Azure Government, Azure China, and private endpoints. Name the blob service url instead and those accounts become reachable. The url has to be https, since the account key or the bearer token would otherwise travel in the clear. * azure: reject an endpoint that carries no hostname A url like https://:443/ has a host of ":443", so the emptiness check on Host let it through and the request only failed once it reached Azure. The hostname is what has to be there.
This commit is contained in:
1 parent
fee3fcb55a
commit
5536d88fbb
10 files changed
+84
-18
No files matched your search
@@ -67,6 +67,9 @@ account_key = ""
|
||||
# takes its tenant and token from AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE,
|
||||
# which the Azure workload identity webhook projects into the pod.
|
||||
client_id = ""
|
||||
# blob service url, for accounts outside the public cloud. Empty resolves to
|
||||
# https://<account_name>.blob.core.windows.net/
|
||||
endpoint = ""
|
||||
container = "mycontainer" # an existing container
|
||||
directory = "/" # destination directory
|
||||
is_incremental = false
|
||||
|
||||
Reference in new issue
Block a user