Create and point it to github



Participation Infrastructure
Community Ops
2 years ago
2 years ago


(Reporter: Nukeador, Assigned: yalam96)





2 years ago

We need to create subdomain and point it to github pages.

Project page is here:

Hey :Nukeador

Instead of diving into the details of adding the DNS entry for this static github page I suggest you describe some requirements first.

From my point of view a blocker for hosting it as a github static page is that there is no way to add SSL support for custom domains directly in github. Here are my recommendations regarding hosting (with SSL support).

* Create a docker image with just the static content (based eg. in nginx [1]) and deploy it in PaaS (less preferred)
* Create an amazon s3 bucket with the static content behind a cloudfront web distribution
* Host the github static site behind a cloudfront web distribution (seems the easiest to me)

There are probably other solutions too that I am open to discuss. Let me know if you have any other ideas.
I will also defer to Pierros for any other things we should take care of from a managerial point of view.

Flags: needinfo?(pierros)

Comment 2

2 years ago
We wanted to reduce the infra work needed for this project to zero (no hosting/server) and also being able to edit the site on the fly from github by non-technical people, also moving fast.

Unfortunately, we don't have the resources to create and maintain the infra you proposed.

Why not having SSL at the beginning is a blocker?
Let me explain how the proposal to use github + cloudfront works.

* acts as a middle layer between user and the github static page
* is where our domain points to
* is the layer where we also do SSL termination
* caches the static website pages from github

The configuration is done once. After that every change in the static site is going to be reflected to cloudfront automatically (needs some time until the cache gets invalidated).

That means that the only maintenance needed is in the static page side hosted in github.

> Why not having SSL at the beginning is a blocker?

For me it's a bad paradigm for a Mozilla hosted site in our days not to use SSL. On top of that in case this site evolves to something that also handles data (eg. form submission, email subscription, surveys etc) we are going to need SSL support and it's better to plan ahead.

Except of the actual technical part that we are trying to tackle here, there are valid reasons why we should use and promote encryption to our public facing sites as part of what we do as participation team.

I will wait for Pierros to chime in here. This is just my opinion about the standards/policies we should have when deploying production services.

Comment 4

2 years ago
When could the cloudfront thing be done? The main issue here is time, we want to launch as soon as possible (end of this week), even if v1 is not perfect.

If cloudfront is something we can set up in the following days, I'm fine, if not we should explore other possibilities, even using the domain for the launch (which I don't like much since we own



2 years ago
Blocks: 1288066

Comment 5

2 years ago
Just to weigh in here, we need a commitment today (yes short notice, acknowledged) if Part Infra can help in the setup as outlined here. We are planning to launch as soon as later this week / early next week.
We should move forward with deploying it through using Cloudfront.

Yousef will take care of that.
Assignee: nobody → yousef
Flags: needinfo?(pierros)

Comment 7

2 years ago
Thanks everyone!
user/yalam96 is not authorized to perform: cloudfront:CreateDistribution

Nemo, can I get access to cloudfront:*?

Nuke, can you confirm you have added as a custom domain in the GitHub repo as per ?
Flags: needinfo?(nukeador)
Flags: needinfo?(jgiannelos)

Comment 9

2 years ago
(In reply to Yousef Alam [:yalam96] from comment #8)
> Nuke, can you confirm you have added as a custom
> domain in the GitHub repo as per
> github-pages-site/ ?

I'm waiting for the domain to be ready to do the change, since we are testing the site using the one (if I do the change now we loose access). Ping me here or on telegram and I can do the change in 1 minute.

Flags: needinfo?(nukeador)
I changed the IAM policy to also grant Community Ops full access to Cloudfront (fixed in bug 1288365).
Flags: needinfo?(jgiannelos)

I've created a module to make this easy for us to do now and in the future. Will PR the final bits to get this going. Pull Request has been merged and has been deployed at

Nuke, once you change the custom domain in the GitHub repo settings the site should start fully working.

Note that it will take up to 20 minutes for changes made on GitHub to be reflected on the website.
Flags: needinfo?(nukeador)

Comment 13

2 years ago
Custom domain set, and I've changed some relative urls to work with the new domain.
Flags: needinfo?(nukeador)

Comment 14

2 years ago
I'm currently getting a redirect loop at
Turns out CF doesn't actually forward the host header so we didn't need the change in GitHub. Everything is working now.
Last Resolved: 2 years ago
Resolution: --- → FIXED
Everything works OK. Marking this one as verified.
You need to log in before you can comment on or make changes to this bug.