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

    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.

    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

    Avatar photo[anonymous]

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

    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.

    Avatar photo[anonymous]

    Perfect, I will try it