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

Vultr Api: Update to v2 #4192

Merged
merged 1 commit into from
Jul 19, 2022
Merged

Vultr Api: Update to v2 #4192

merged 1 commit into from
Jul 19, 2022

Conversation

skyksandr
Copy link
Contributor

I ran into rate limits when trying to issue single cert for 3 domains.

  • Vultr Api v1 has rate limit of 2 requests per seconds (source)
  • Vultr Api v2 - 30 requests per second (source)

In this PR I have updated:

  • endpoints
  • Auth header: from Api-Key: ... to Authorization: Bearer ...
  • Content-Type to application/json

I have verified it working using GitHub Actions https://github.com/skyderby/skyderby/runs/7378330990?check_suite_focus=true

@Neilpang
Copy link
Member

https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Test

- change endpoints
- change Api-Key header to Authorization: Bearer
@skyksandr
Copy link
Contributor Author

skyksandr commented Jul 18, 2022

@Neilpang done that, could you verify it: https://github.com/skyksandr/acme.sh/actions/runs/2688142460

Also shell check suggests to double quote $VULTR_API_KEY to prevent globbing. What is your opinion on it?

api_key_trimmed=$(echo $VULTR_API_KEY | tr -d '"')

@Neilpang Neilpang merged commit de04192 into acmesh-official:dev Jul 19, 2022
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.

2 participants