s3fs
s3fs copied to clipboard
Feature request: set default endpoint
Now I can change the endpoint by appending ?endpoint_url= to the filesystem URL. Is it possible to set the default endpoint in a settings file or programmatically to prevent manually modifying fs URL every time?
There doesn't seem to be any blessed way of doing this from Boto, but the opener could use an env var. Would that work for your use case?
There doesn't seem to be any blessed way of doing this from Boto, but the opener could use an env var. Would that work for your use case?
That works. It's needed for private s3 service.
My solution is:
endpoint_url=parse_result.params.get(
"endpoint_url", os.getenv("AWS_ENDPOINT_URL", None)
),
in opener.py, line 51