Is it possible to set up SSL with a custom domain on github pages #21897
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
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! |
Beta Was this translation helpful? Give feedback.
-
Great, thanks. I’ll give that a try, that makes sense. |
Beta Was this translation helpful? Give feedback.
-
You can do it with fly.io too. |
Beta Was this translation helpful? Give feedback.
-
Cool, I haven’t heard of them before, I will check them out. |
Beta Was this translation helpful? Give feedback.
-
Tried fly.io, but it looks like they don’t support letsencrypt directly. |
Beta Was this translation helpful? Give feedback.
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!