Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Github Pages Custom Domain

  • #10302
    Avatar photo[anonymous]

    Quick question…

    Do you setup and connect custom domain on Github, before or after syncing with Publii?

    I’m just trying to understand the exact work flow.

    Thanks

    #10307
    Avatar photo[anonymous]

    I’m an amateur at this, so hopefully someone else confirms, but my understanding is that it doesn’t matter.  Until you setup your custom domain, you’ll be able to reach your Github Pages site at the default address (`https://USERNAME.github.io/WEBSITENAME/`).  When you add the custom address, Publii basically just going to add a `CNAME` file to your repository the next time you sync it. When it syncs, it’s just overwriting everything in the git repo.

    #10308
    Avatar photo[anonymous]

    Thanks Gazook, that’s what I thought.

    While I have you here…

    Do you have any advice on file security when using Github pages. I’ve read, but can’t remember where, that there’s certain files settings required to help prevent access.

    It’s only a test site I’m adding, but would be good to know all the same.

    #10311
    Avatar photo[anonymous]
    [anonymous] wrote:

    Do you have any advice on file security when using Github pages. I’ve read, but can’t remember where, that there’s certain files settings required to help prevent access.

    What kind of access are you trying to prevent? Like making the repo private?