pypy / pypy.org

Sources for website at https://www.pypy.org
34 stars 11 forks source link

Hosting on GitHub Pages? #120

Closed ewdurbin closed 3 months ago

ewdurbin commented 4 months ago

I am currently running through an audit of everything we're hosting on the PSF infrastructure (specifically to prepare for a major distro upgrade of our older fleet of servers).

I noticed that the hosting we're doing for www.pypy.org is fairly rudimentary, effectively just cloning the gh-pages branch and foisting that up behind an nginx server with a TLS certificate.

GitHub Pages is likely a much stronger fit for this since PyPy is now hosted on GH. That would provide you with a CDN and less delay in getting updates published.

Could the PyPy team consider making this migration?

ewdurbin commented 4 months ago

cc @mattip

mattip commented 4 months ago

Makes sense. I think the path forward is to carefully follow https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages, and to set the custom domain part of https://github.com/pypy/pypy.org/settings/pages. Do we need to add a CNAME file to the root of the repo? @fijal is this something you have experience with (as the owner of the DNS)?

mattip commented 4 months ago

The pages are already live at https://pypy.github.io/pypy.org/

fijal commented 4 months ago

I definitely don't have experience with that. I can sort it out if that's what you want though

ewdurbin commented 4 months ago

I think that's the preference for me, as it is easier ultimately... and provides a better experience for users and maintainers.

It indeed should just be a matter configuring CNAME in GitHub pages and updating DNS.

mattip commented 4 months ago

@fijal you should have all the permissions needed since you are an owner here. Let me know if there is anything I can do.

ewdurbin commented 3 months ago

Checking in on this. We're proceeding with our updates and want to make a plan for if we need to include the VM we are hosing for pypy-www currently.

fijal commented 3 months ago

I won't have time to read any documentation in the next few weeks. I can easily move pypy (which is static html right?) to baroquesoftware if PSF is unhappy

On Mon, 15 Jul 2024 at 22:55, Ee Durbin @.***> wrote:

Checking in on this. We're proceeding with our updates and want to make a plan for if we need to include the VM we are hosing for pypy-www currently.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

ewdurbin commented 3 months ago

This isn't a matter of unhappiness, just practicality. If it's something that you will have time for at some point and can commit to it, we'll hold off on migrating the current backend hosts, which will necessitate similar DNS updates.

mattip commented 3 months ago

@fijal I have configured this repo to use pypy.org for the gh-pages branch. If you could (as documented here

Please let me know when you do this so I can verify the change.

mattip commented 3 months ago

We moved the hosting off PSF infrastructure. Thanks @fijal.

ewdurbin commented 3 months ago

thanks all!

cfbolz commented 3 months ago

thank you @fijal and @mattip, and thank you @ewdurbin!