Skip to main content

Configuring an outbound web proxy server

A proxy server provides an additional level of security for 您的 GitHub Enterprise Server 实例.

About proxies with GitHub Enterprise Server

When a proxy server is enabled for 您的 GitHub Enterprise Server 实例, outbound messages sent by GitHub Enterprise Server are first sent through the proxy server, unless the destination host is added as an HTTP proxy exclusion. Types of outbound messages include outgoing webhooks, uploading bundles, and fetching legacy avatars. The proxy server's URL is the protocol, domain or IP address, plus the port number, for example http://127.0.0.1:8123.

Note: To connect 您的 GitHub Enterprise Server 实例 to GitHub.com, your proxy configuration must allow connectivity to github.com and api.github.com. For more information, see "Connecting your enterprise account to GitHub.com."

如果为企业启用了 GitHub Actions ,则仅支持 HTTP 代理。 不支持 SOCK5 和 HTTPS 代理以及 Polipo。 For more information about using GitHub Actions with GitHub Enterprise Server, see "Getting started with GitHub Actions for GitHub Enterprise Server."

Configuring an outbound web proxy server

  1. 从 GitHub Enterprise Server 上的管理帐户中,在任何页面的右上角,单击

    用于访问站点管理员设置的火箭飞船图标的屏幕截图

  2. 如果您尚未进入“站点管理员”页面,请在左上角单击 Site admin(站点管理员)

    "站点管理员" 链接的屏幕截图

  3. 在左侧边栏中,单击 管理控制台左侧边栏中的 管理控制台 选项卡

  4. 在左侧边栏中,单击 Privacy(隐私)设置侧边栏中的隐私选项卡

  5. Under HTTP Proxy Server, type the URL of your proxy server. Field to type the HTTP Proxy Server URL

  6. Optionally, under HTTP Proxy Exclusion, type any hosts that do not require proxy access, separating hosts with commas. To exclude all hosts in a domain from requiring proxy access, you can use . as a wildcard prefix. For example: .octo-org.tentacle Field to type any HTTP Proxy Exclusions

  7. 在左侧边栏下,单击 Save settings(保存设置)

    管理控制台 中保存设置按钮的屏幕截图

    注意: 管理控制台 中的保存设置将重新启动系统服务,这可能会导致用户可见的停机时间。

  8. 等待配置运行完毕。

    配置实例