Connecting custom domain to github pages.
I use namesilo for my domain, which is .dev, which by default requires https aka SSL sertificate.
Github Pages provides SSL by default, no need to get new sertificate
Namesilo provides template for github DNS, just click "add Github Template". looks like this depending on where in namesilo you opened DNS:
c. Once button "use template" pressed, the DNS table will update with these lines:
No need to edit anything in them.
4. THE ONLY EXTRA STEP YOU NEED is adding one more line:
Now DNS should look like this, you're done with namesilo part:
5. For github there are plenty of tutorials online, their wiki is enough:
https://docs.github.com/en/pages/getting-started-with-github-pages/securing-your-github-pages-site-with-https
6. "my site doesn't work" part:
All the errors are related to Github not timely checking shit in order. You just press check again and again and again. delete custom domain and insert again, check "Enforce HTTPS" when it is allowed.
"it's not eligible at this time" message is SSL not ready, nothing to do, just wait and check again.
Eventually you'll get "the certificate is already created" message on top of the page, so SSL added.
Then it will be "primary DNS is added" in green under custom domain or smth and "www improperly configured" as an error in orange. Still nothing to do, just check again.
Even if "DNS check successful" and you still don't see your site, it is just a matter of doing the same check again, remove, add again. THere's no extra hidden step anywhere.
So, the issue in either :
you lack this one line in DNS
you have to delete and add domain again on github (if sll created, you can move from this step imo)
you have to keep "check again"
AND NOT A SINGLE FUCKING ANSWER all over the web with this issue gave a clear visual representation of how it is supposed to look in the DNS table, namesilo or not. Someone just said "add this" and it's description of the last line that has been already added?? JFC
anyways, my custom domain works and I'll eventually update my website using github. right now it is an old site I've done for my CV showcasing what I know from programming (isn't much, hence the post lol)