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

增加Nginx autoindex采集器 #137

Closed
863056768 opened this issue Jun 22, 2024 · 1 comment
Closed

增加Nginx autoindex采集器 #137

863056768 opened this issue Jun 22, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@863056768
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Describe the solution you'd like
增加 ustc镜像Collector

Describe alternatives you've considered

Additional context

@863056768 863056768 added the enhancement New feature or request label Jun 22, 2024
@voidint voidint changed the title 增加对ustc镜像的支持 增加Nginx autoindex采集器 Jun 25, 2024
@voidint
Copy link
Owner

voidint commented Jun 25, 2024

  • ustc镜像站点使用的是 Nginx的ngx_http_autoindex_module模块,类似情况的镜像站点还有很多,比如azure.cn
  • 增加 autoindex 采集器后,统一处理针对这类型的镜像站点的 go 版本信息采集,既一个采集器可针对一类的镜像站点进行采集,而不是为每个镜像站点分别实现一个采集器
  • G_MIRROR环境变量支持新扩展写法
    • 完整写法:export G_MIRROR='采集器名|镜像站点URL',如export G_MIRROR='fancyindex|https://mirrors.nju.edu.cn/golang/'
    • 简写语法:export G_MIRROR=镜像站点URL,如export G_MIRROR='https://mirrors.nju.edu.cn/golang/'。注意:简写写法仅针对已知并完成适配的镜像站点,而完整写法则可以针对已知或匹配采集器的未知镜像站点。

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

2 participants