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

feat: Added support for virtual host style #390

Merged
merged 2 commits into from
Jul 18, 2023
Merged

feat: Added support for virtual host style #390

merged 2 commits into from
Jul 18, 2023

Conversation

abyss-w
Copy link
Collaborator

@abyss-w abyss-w commented Jul 6, 2023

Add the enable_virtual_style field to the config file, example:

access_key_id: 'ACCESS_KEY_ID_EXAMPLE'
secret_access_key: 'SECRET_ACCESS_KEY_EXAMPLE'
zone: 'zone_name'
host: 'qingstor.com'
port: 443
protocol: 'https'

enable_virtual_style: true
  • When enable_virtual_style is set to true, requests will be sent using the virtual host style, e.g. http://BUCKET.<zone_name>.qingstor.com/KEY
  • If enable_virtual_style is set to false or not set, requests will be sent using path host style, e.g. http://<zone_name>.qingstor.com/BUCKET/KEY

@abyss-w abyss-w requested a review from MorvenH July 6, 2023 08:13
@MorvenH MorvenH requested review from yu31 and removed request for MorvenH July 18, 2023 02:36
@yu31 yu31 merged commit 47898fa into master Jul 18, 2023
8 of 12 checks passed
@yu31 yu31 deleted the virtual-style branch July 18, 2023 03:12
@abyss-w abyss-w mentioned this pull request Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants