Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erabossid/github-custom-domain-config
Step by step guideline for adding custom domain to a github repository.
https://github.com/erabossid/github-custom-domain-config
custom-domain domain gh-pages github server-configuration tradecoder
Last synced: about 1 month ago
JSON representation
Step by step guideline for adding custom domain to a github repository.
- Host: GitHub
- URL: https://github.com/erabossid/github-custom-domain-config
- Owner: erabossid
- License: mit
- Created: 2021-04-08T10:33:48.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-01T05:01:37.000Z (over 3 years ago)
- Last Synced: 2024-11-15T01:44:19.867Z (about 2 months ago)
- Topics: custom-domain, domain, gh-pages, github, server-configuration, tradecoder
- Homepage: https://tradecoder.github.io/github-custom-domain-config/
- Size: 532 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-custom-domain-config
Full guideline for using custom domain to any github repository.## Step 1
Open your repositoy and click on Settings![Repo](/images/open-repo.jpg)
## Step 2
Under the Github Pages -> Source, click on `None`, then select `master` or another branch, then `Save` it
![Select Page Branch](/images/select-page-branch.jpg)
This will publish your project with github-pages via selected branch. So, your site is live now at https://username.github.io/projectname. Now we will set custom domain to our github project. But before that we will edit our main domain DNS configuration. Who already have a branch published will skip the step 2.
## Step 3
Add / point the following IP addresses to your custom domain in DNS zone with `A` record
* 185.199.108.153
* 185.199.109.153
* 185.199.110.153
* 185.199.111.153Open DNS zone
![dns-zone](/images/dns-zone.jpg)Then add the ips
![add-github-ips](/images/add-github-ips.jpg)## Step 4
Come back to your repository Settings-> Github Pages, then put your domain name to this field and click on `Save`
![Put your domain name](/images/put-domain-name.jpg)
## Step 5 (fix https issue and review)
After the step 4, your github page will be published with your custom domain name. When you'll visit github project link like [https://tradecoder.github.io/github-custom-domain-config ](https://tradecoder.github.io/github-custom-domain-config) and when you'll visit your custom domain like [https://tradecoder.com](https://tradecoder.com), for both the cases it will load with your custom domain name. It may take few minutes to get effective.
And if you find in the section of Github Pages that https is not active, it may take upto 24 hours to be active. If not, you may have to remove and add the domain in the github page again.
![force-https](/images/force-https.jpg)