Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Sync changes from upstream repository #802

Merged
merged 1 commit into from
Jun 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions content/changes/2015-06-11-pages-a-records.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
kind: change
title: GitHub Pages' A Records Added to Meta API
created_at: 2015-06-11
author_name: leereilly
---

The [Meta API](/v3/meta/) now includes the A record IP addresses for [GitHub Pages](https://pages.github.com/).

<pre class="terminal">
$ curl https://api.github.com/meta
</pre>

<pre><code class="language-javascript">
{
"verifiable_password_authentication": true,
"github_services_sha": "23c6105183b626cf74c045f6d53af7a178bfdb4c",
"hooks": [
"192.30.252.0/22"
],
"git": [
"192.30.252.0/22"
],
"pages": [
"192.30.252.153/32",
"192.30.252.154/32"
]
}
</code></pre>

These IP addresses are used to [configure A records with your DNS provider for GitHub Pages](https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/). These addresses have changed a few times in the past. This API always provides the current addresses so that you can automate the process of keeping your DNS records up to date.

If you have any questions, please [get in touch](https://github.com/contact?form%5Bsubject%5D=GitHub+Pages+A+Records+Added+to+API). We’ll be happy to help.
5 changes: 3 additions & 2 deletions content/v3/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Or, if you access this endpoint on your organization's [GitHub Enterprise](https

Name | Type | Description
-----|------|--------------
`hooks`|`array` of `strings` | An Array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from on GitHub.com. Subscribe to the [API Changes blog](https://developer.github.com/changes/) or follow [@GitHubAPI](https://twitter.com/GitHubAPI) on Twitter to get updated when this list changes.
`git`|`array` of `strings` | An Array of IP addresses in CIDR format specifying the Git servers for GitHub.com.
`verifiable_password_authentication`|`boolean` | Whether authentication with username and password is supported. (GitHub Enterprise instances using CAS or OAuth for authentication will return `false`. Features like [Basic Authentication with a username and password](/v3/auth/#via-username-and-password), [sudo mode](https://help.github.com/articles/sudo-mode), and [two-factor authentication](https://help.github.com/articles/about-two-factor-authentication) are not supported on these servers.)
`github_services_sha` | `string` | The currently-deployed SHA of [`github-services`](https://github.com/github/github-services).
`hooks`|`array` of `strings` | An Array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from on GitHub.com. Subscribe to the [API Changes blog](https://developer.github.com/changes/) or follow [@GitHubAPI](https://twitter.com/GitHubAPI) on Twitter to get updated when this list changes.
`git`|`array` of `strings` | An Array of IP addresses in CIDR format specifying the Git servers for GitHub.com.
`pages`|`array` of `strings` | An Array of IP addresses in CIDR format specifying the A records for [GitHub Pages](https://pages.github.com/).
8 changes: 6 additions & 2 deletions lib/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1847,10 +1847,14 @@ def fetch_content(key)
}

META ||= {
:verifiable_password_authentication => true,
:github_services_sha => "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15",
:hooks => ['127.0.0.1/32'],
:git => ['127.0.0.1/32'],
:verifiable_password_authentication => true,
:github_services_sha => "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15"
:pages => [
"192.30.252.153/32",
"192.30.252.154/32"
]
}

BLOB ||= {
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy