hiran wrote: ↑Wed Oct 18, 2023 7:28 pm
Just look at oolite-web repo Settings->Pages! And I'm sure everything will become clear. GitHub Pages is configured to use BRANCH
only-media! addons.oolite.space via CF points to ooliteproject.github.io (CNAME DNS record). But, in GitHub, in the Settings for the
oolite-web repository, the custom domain addons.oolite.space is specified - therefore, if you go to the address of the
REPO Pages, GitHub itself will redirect you with code 301 to the custom domain specified in the Settings.
This is all about "FIRST our server" - GitHub, that serving subdomain
addons. The CF here only performs the role of DNS for servicing the
addons subdomain.
Well, the "SECOND our server" - this is a bundle from GitHub and CloudFlare:
1) the application from the CF is installed on GitHub in the
oolite-web repo;
2) A
Pages application has been created on the CF, which is linked to the
only-static BRANCH! And also the oolite.space domain is configured on it;
3) The CF monitors changes in the GitHub repo through its application, and when something changes, it makes a deployment. But deployment occurs ONLY if the
online-static branch changes!
4) CF acts as a proxy server
So I deployed TWO "websites" on the ONE GitHub repo
oolite-web:
branch only-media ->
GitHub Pages (as file server and web server) at addons.oolite.space (for big media files)
branch only-static -> GitHub (just as file server) +
CF Pages (as web/proxy server) at oolite.space (for tiny html+css+js)
Do you still have questions regarding the current scheme of our site?
If I understood the GitHab Pages documentation correctly, there is no restriction on installing Pages per repo. That’s why I suggested creating a new
oolite-web-artifacts repo and installing GitHab Pages on it and simply assigning a custom domain name to it. But you created another option based on the oolite-expansion-catalog repo. So... we can now simply link the
artifacts subdomain to
https://ooliteproject.github.io/oolite- ... on-catalog.
hiran wrote: ↑Wed Oct 18, 2023 7:28 pm
So that one definitely is Jeckyl output. Which leads me to the bigger question: Currently what we have works like this:
I didn’t even know that the Source for GitHub Pages could be Actions )
I'm studying the manuals...
hiran wrote: ↑Wed Oct 18, 2023 7:28 pm
So why does Cloudflare require privileges? What is the flow behind that?
CF require only install application to repo, which will be linked to CF Pages (to monitor events).