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.

What is the way to use Cloudflare and keep the github repository private?

  • #8949
    Avatar photo[anonymous]

    When using Cloudflare as hosting, we have to create a repository on Github. To make it work we have to set the repository as public.

    In the installation manuals of Publii it says that after doing the process you can set it as private, but when I do it the web breaks and the template does not load well.
    Is there any way to keep the github repository private?

    Thanks in advance

    #8957
    Avatar photo[anonymous]

    Is there any way to manually upload to cloudflare? I try to upload the output folder and the files do not load. Github often blocks my account for no reason after half an hour of creating it, I would like to skip this step.

    #8960
    Avatar photo[anonymous]

    I have multiple private github repo published with Cloudflare; not just for Publii.

    Give it a try normally it is just a matter of giving proper access to Cloudflare at Github

    https://github.com/settings/installations/25383015

    #8964
    Avatar photo[anonymous]

    Thanks for your answer, so first you create the private repository on github, connect to cloudflare and that’s it?

    #8971
    Avatar photo[anonymous]

    yes, the repo need to be created before, and ideally, you sync your Publii with it before connecting CloudFlare to it.

    you need to create the repo first to be able to select it on the Cloudflare side.

    #8974
    Avatar photo[anonymous]

    Perfect, I will try it