Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 6

Is it possible to set up SSL with a custom domain on github pages

Solved! Go to Solution.

When setting up a GitHub pages, I tried to enable SSL, but because I have a custom domain, it doesn't let me do this. Is there a way we can set this up?

5 Replies
Highlighted
Solution
Pilot Lvl 1
Message 2 of 6

Re: Is it possible to set up SSL with a custom domain on github pages

Yes, sure you can.

 

I wanted to do this a while back and did some research on it. It appears you can use CloudFlare to do this, by setting a page rule that forces HTTPS redirects amongst other things.

 

There are quite a lot of tutorials out there, but this tutorial on CloudFlare's blog as well as this GitHub Gist really broke it down.

 

Do let me know if it works well when you try it.

 

Cheers!

Highlighted
Copilot Lvl 3
Message 3 of 6

Re: Is it possible to set up SSL with a custom domain on github pages

Great, thanks. I'll give that a try, that makes sense.

Highlighted
Copilot Lvl 3
Message 4 of 6

Re: Is it possible to set up SSL with a custom domain on github pages

You can do it with fly.io too.

Pilot Lvl 1
Message 5 of 6

Re: Is it possible to set up SSL with a custom domain on github pages

Cool, I haven’t heard of them before, I will check them out.

Highlighted
Copilot Lvl 2
Message 6 of 6

Re: Is it possible to set up SSL with a custom domain on github pages

Tried fly.io, but it looks like they don't support letsencrypt directly.