Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] missing doc how to set api version and path via env vars #1379

Open
c33s opened this issue Nov 30, 2024 · 2 comments
Open

[BUG] missing doc how to set api version and path via env vars #1379

c33s opened this issue Nov 30, 2024 · 2 comments
Labels
triage Needs triage and scheduling

Comments

@c33s
Copy link
Contributor

c33s commented Nov 30, 2024

Describe the bug

the docs give no info on how to set an host alias via env var but with --path="off" and api="S3v4". if it is not possible it should also say so (where to open a feature request for requesting this functionalilty?).

it could work like this (tried it but it does not work):

export MC_HOST_myalias="https://access_key:secret_key@mystorage.com?path=off&api=S3v4
@c33s c33s added the triage Needs triage and scheduling label Nov 30, 2024
@ravindk89
Copy link
Collaborator

This is slightly more engineering tuned, but https://github.com/minio/mc/blob/1681e4497c09d7438a34e846f76dbde972ab7daf/cmd/config.go#L272-L300 implies that we do not parse for other settings such as path, s3 API, etc.

We can document that MC_HOST defaults to an alias using S3v4 API. For a feature request that would go to minio/mc

@c33s
Copy link
Contributor Author

c33s commented Dec 2, 2024

thanks for your fast answer. yes it would be good to have this documented.

will do a feature request on minio/mc, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs triage and scheduling
Projects
None yet
Development

No branches or pull requests

2 participants