Skip to main content

为 Copilot 配置代理服务器或防火墙

应允许某些流量通过防火墙或代理服务器,以使 Copilot 按预期工作。

谁可以使用此功能?

Proxy server maintainers or firewall maintainers

GitHub Copilot Individual、 GitHub Copilot Business 或 GitHub Copilot Enterprise。

如果公司采用防火墙或代理服务器等安全措施,则应将以下 URL、端口和协议添加到允许列表,以确保 Copilot 按预期工作:

域和/或 URL目的
https://github.com/login/*身份验证
https://api.github.com/user用户管理
https://api.github.com/copilot_internal/*用户管理
https://copilot-telemetry.githubusercontent.com/telemetry遥测
https://default.exp-tas.com/遥测
https://copilot-proxy.githubusercontent.com/Copilot 建议的 API 服务
https://origin-tracker.githubusercontent.comCopilot 建议的 API 服务
https://*.githubcopilot.comCopilot 建议的 API 服务

根据组织使用的安全策略和编辑器,可能需要将其他域和 URL 加入允许列表中。 有关特定编辑器的详细信息,请参阅“延伸阅读”。

代理服务器或防火墙的每个用户还需要配置自己的环境以连接到 Copilot。 请参阅“为 GitHub Copilot 配置网络设置”。

其他阅读材料