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

Provider a better way to choose the GitHub proxy #229

Open
LinuxSuRen opened this issue Apr 14, 2022 · 0 comments
Open

Provider a better way to choose the GitHub proxy #229

LinuxSuRen opened this issue Apr 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@LinuxSuRen
Copy link
Owner

Sometimes, we might meet the following errors when trying to use gh.api.99988866.xyz

status code: 429

We can record the GitHub proxy server into a config file. And mark the error when it occurs. So, it's possible to choose an available server automatically.

Since v0.0.57, the config file hd.yaml looks like:

fetch: true
goget: false
provider: gitee
proxy-github: gh.api.99988866.xyz
thread: 6

then, we can add the following items:

proxy-github-candidates:
  - server: gh.api.99988866.xyz
     status: ok
     lastUsed: Thu Apr 14 21:32:08 CST 2022
  - server: ghproxy.com
     status: error
     lastUsed: Thu Apr 14 21:32:08 CST 2022
@LinuxSuRen LinuxSuRen added the enhancement New feature or request label Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant