Three layers sit under every page you read here. The top one is what you see. Underneath it is the machinery that builds, ships and watches the site, and under that are the foundations that give it an address and keep it secure, tidy and cheap.
Scroll on, or pick a layer above the diagram, to lift the layers apart one at a time. Choose Technically for the engineering detail.
1Layer 1 of 3: The surface
What you see
In plain English
Fast, simple pages at martyneast.co.uk, served from data centres close to wherever you are, over a secure connection.
Technically
Prebuilt static HTML and CSS from Astro, served by Azure Static Web Apps on the Free plan from a global edge network, with managed TLS certificates and strict response headers.
martyneast.co.uk. Astro pages built ahead of time, with no server code and only a little JavaScript for diagrams like this one.
Static Web Apps. Azure Static Web Apps, Free plan. Global edge, custom domains for the apex and www, certificates renewed automatically.
Security headers. HSTS, a content security policy that allows only the site's own scripts and styles, and X-Frame-Options DENY.
2Layer 2 of 3: The systems
How it gets there
In plain English
Every change goes through a review, gets built and checked automatically, and only then goes live. A robot checks every half hour that the site is still up and tells me if it isn't.
Technically
Pull requests into a protected main branch, a CI build on every change, a deploy workflow on every merge, and a scheduled uptime check, all on GitHub Actions.
Uptime check. A scheduled workflow every 30 minutes tests HTTPS, the www and HTTP redirects and certificate expiry, and opens an issue on failure.
GitHub Actions. Builds and type checks every pull request; on merge to main, builds and uploads the site with a scoped deployment token.
Pull requests. A ruleset on main requires a pull request and a passing build and blocks force pushes. Dependabot and secret scanning are on.
Holds up the layer above
Uptime check to martyneast.co.uk: checks every 30 minutes that the address answers and the certificate is valid.
GitHub Actions to Static Web Apps: every merge to main is built and uploaded automatically.
Pull requests to Security headers: headers live in the repository, so changing them takes a reviewed pull request.
3Layer 3 of 3: The foundations
What holds it up
In plain English
The things nobody sees. The web address, the blueprints that rebuild everything from scratch, and the spending limits and rules that stop it costing money or getting messy.
Technically
Azure DNS for the zone, Bicep for every resource, and subscription level governance through a tag policy and a monthly budget with alerts.
Azure DNS. The zone for martyneast.co.uk, delegated from 123-reg. Apex alias and www CNAME, plus SPF and DMARC records that reject spoofed email.
Bicep templates. Infrastructure as code for the Static Web App and DNS zone, applied by a script that shows a what-if preview first.
Budget and policy. A £10 monthly budget alerting at 50%, 80% and 100%, and an Azure Policy that blocks resource groups without the standard tags.
Holds up the layer above
Azure DNS to martyneast.co.uk: alias records point the address at the web app, so visitors reach the right place.
Bicep templates to Static Web Apps: the web app and its custom domains are defined in code, not clicked together by hand.
Overview
martyneast.co.uk is the front door for everything else I build. It introduces me, lists my projects and links to a case study and, where there is one, a live demo for each. It is also a project in its own right: the hosting, DNS, governance and delivery pipeline are all defined in code in the same public repository.
Problem statement
A CV says what someone has done. I wanted somewhere that shows it, with working systems a reader can open, source they can read and an honest account of the design decisions. It had to be permanently available, cheap enough to leave running for years, and completely separate from any employer’s accounts or infrastructure.
Architecture
Hosting. Azure Static Web Apps on the Free plan serves the prebuilt site from a global edge network, with managed TLS certificates for both custom domains.
DNS. The domain is registered at 123-reg but its nameservers point to an Azure DNS zone, which lets the apex use an alias record that follows the Static Web App instead of a hard coded IP address. www redirects to the apex.
Email security. The domain sends no email, so SPF (-all) and DMARC (p=reject) records tell receiving servers to reject anything that claims to come from it.
Projects. Each project lives in its own repository and resource group on its own subdomain, so it can be paused or deleted without touching this site.
Technology stack
Layer
Choice
Why
Site
Astro, static output
Ships plain HTML and CSS with no client side JavaScript
Content
Markdown with a typed schema
Adding a project is one file; the build fails on a malformed one
Hosting
Azure Static Web Apps, Free
Custom domains and certificates included at no cost
DNS
Azure DNS
Apex alias records and DNS managed in the same Bicep template
Infrastructure
Bicep
Azure native, readable, with what-if previews before every change
Delivery
GitHub Actions
Builds every pull request and deploys every merge to main
Deployment
Work happens on a short lived branch and arrives through a pull request.
A ruleset on main requires a pull request and a passing build. Force pushes are blocked.
Merging runs the deploy workflow, which builds the site and uploads it with a scoped deployment token held as a GitHub Actions secret.
Infrastructure changes run through a script that checks the signed in account is personal, shows a what-if preview and asks before applying anything.
Security
No secrets in the repository. Secret scanning and push protection are on.
Strict response headers: HSTS, a content security policy that allows only the site’s own scripts and styles, X-Frame-Options: DENY and a locked down permissions policy.
Dependabot keeps npm packages and Actions current.
Monitoring
A scheduled GitHub Actions job checks every 30 minutes that the site answers over HTTPS, that www and plain HTTP redirect correctly and that the certificate has at least three weeks left. A failure opens a GitHub issue, which emails me, and the issue closes itself when the site recovers.
Cost model
Item
Monthly cost
Static Web Apps, Free plan
£0
Azure DNS zone and queries
About £0.40
Uptime checks on GitHub Actions (public repository)
£0
Domain at 123-reg
Billed yearly
A subscription budget of £10 a month emails me at 50%, 80% and 100% of actual spend and when the forecast passes 100%. Azure Policy blocks any resource group without the five standard tags, so every pound is attributable to a project.
Limitations
The Free plan allows two custom domains per app, which is exactly the apex and www.
There is no server side code, so anything dynamic belongs to a project with its own API.
Scheduled GitHub workflows pause after 60 days without repository activity, so the uptime check needs a commit at least every couple of months.
Future improvements
Pull request preview environments.
Deploy from GitHub with OpenID Connect and a resource group scoped identity instead of a deployment token.
A small public status page at status.martyneast.co.uk covering every live project.