{"id":27120015,"url":"https://github.com/eracodex/github-custom-domain-config","last_synced_at":"2025-09-11T09:41:20.008Z","repository":{"id":166676965,"uuid":"355863386","full_name":"eracodex/github-custom-domain-config","owner":"eracodex","description":"Step by step guideline for adding custom domain to a github repository. ","archived":false,"fork":false,"pushed_at":"2021-05-01T05:01:37.000Z","size":545,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T14:40:07.227Z","etag":null,"topics":["custom-domain","domain","gh-pages","github","server-configuration","tradecoder"],"latest_commit_sha":null,"homepage":"https://tradecoder.github.io/github-custom-domain-config/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eracodex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-08T10:33:48.000Z","updated_at":"2023-09-15T09:07:56.000Z","dependencies_parsed_at":"2023-06-01T14:15:28.007Z","dependency_job_id":null,"html_url":"https://github.com/eracodex/github-custom-domain-config","commit_stats":null,"previous_names":["tradecoder/github-custom-domain-config","logixmaster/github-custom-domain-config","mydigita/github-custom-domain-config","erabossid/github-custom-domain-config","erabosstt/github-custom-domain-config","erabosscode/github-custom-domain-config","eracodex/github-custom-domain-config"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eracodex%2Fgithub-custom-domain-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eracodex%2Fgithub-custom-domain-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eracodex%2Fgithub-custom-domain-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eracodex%2Fgithub-custom-domain-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eracodex","download_url":"https://codeload.github.com/eracodex/github-custom-domain-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247625377,"owners_count":20969079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-domain","domain","gh-pages","github","server-configuration","tradecoder"],"created_at":"2025-04-07T09:28:36.417Z","updated_at":"2025-04-07T09:28:37.015Z","avatar_url":"https://github.com/eracodex.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-custom-domain-config\nFull guideline for using custom domain to any github repository. \n\n## Step 1\nOpen your repositoy and click on Settings\n\n![Repo](/images/open-repo.jpg)\n\n\n## Step 2\n\nUnder the Github Pages -\u003e Source, click on `None`, then select `master` or another branch, then `Save` it\n\n![Select Page Branch](/images/select-page-branch.jpg)\n\nThis 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. \n\n## Step 3\n\nAdd / point the following IP addresses to your custom domain in DNS zone with `A` record\n\n* 185.199.108.153\n* 185.199.109.153\n* 185.199.110.153\n* 185.199.111.153\n\nOpen DNS zone \n![dns-zone](/images/dns-zone.jpg)\n\nThen add the ips\n![add-github-ips](/images/add-github-ips.jpg)\n\n\n\n## Step 4 \n\nCome back to your repository Settings-\u003e Github Pages, then put your domain name to this field and click on `Save`\n\n![Put your domain name](/images/put-domain-name.jpg)\n\n\n## Step 5 (fix https issue and review)\n\nAfter 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. \n\nAnd 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. \n![force-https](/images/force-https.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feracodex%2Fgithub-custom-domain-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feracodex%2Fgithub-custom-domain-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feracodex%2Fgithub-custom-domain-config/lists"}