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

Allow configuring registry host url #4781

Open
1 task done
bsdayo opened this issue Nov 9, 2023 · 2 comments
Open
1 task done

Allow configuring registry host url #4781

bsdayo opened this issue Nov 9, 2023 · 2 comments
Labels
registry PlatformIO Registry

Comments

@bsdayo
Copy link

bsdayo commented Nov 9, 2023

What kind of issue is this?

  • Feature Request.
    Start by telling us what problem you’re trying to solve. Often a solution
    already exists! Don’t send pull requests to implement new features without first getting our
    support. Sometimes we leave features out on purpose to keep the project small.

Configuration

Operating system: Windows 11

PlatformIO Version (platformio --version): PlatformIO Core, version 6.1.11

Description of problem

The current PlatformIO registry host url (registry.platformio.org) seems to be hardcoded in the source code and cannot be configured. It would be handy if it could be configured.

As a user in China, I would like to thank the PlatformIO team for their efforts in trying to provide a stable service for Chinese users. However, in many areas of China, the registry is still very slow to access. Personally, I'm not optimistic about building many CDN nodes specifically for China (mentioned in #4345), because China's policy is very restrictive on foreign services, and as long as the server is outside of China, it may be blocked by the GFW at any time.

So if you can configure the registry host url, you can build your own server to reverse proxy the registry, and then point the registry host url to your own server. This increases flexibility because even if PlatformIO's official CDN node is blocked or hard to access, users can continue to access the registry using their own reverse proxy server.

Additional info

I have recommended PlatformIO more than once to my close friends, but the biggest resistance is the network problem. It would be great if this problem could be solved completely.

@villivateur
Copy link

I have the same request.

@ivankravets ivankravets added the registry PlatformIO Registry label Nov 28, 2023
@karlzheng
Copy link

I have the same request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
registry PlatformIO Registry
Projects
None yet
Development

No branches or pull requests

4 participants