This repository contains the infrastructure automation logic for hosting and serving my professional CV at cv.aklein.pro.
As an Infrastructure Engineer, I prioritize managing assets through code rather than manual configuration. This project replaces traditional static hosting with a serverless, edge-delivered architecture designed for high availability and optimal user experience.
- Storage: Cloudflare R2 (S3-compatible Object Storage)
- Compute: Cloudflare Workers (Serverless Edge Runtime)
- Networking: Cloudflare DNS with managed SSL/TLS
- Logic:
worker.jshandles request-response mapping and header injection
- Latency: The document is served from Cloudflareโs global edge network, ensuring sub-100ms delivery.
- Reliability: Decoupled storage (R2) from logic (Workers) allows for instant, zero-downtime document updates without redeploying code.
- Native Rendering: The Worker injects
Content-Type: application/pdfandContent-Disposition: inlineheaders to ensure the CV renders natively in the browser viewer rather than forcing a download.
This repository is part of a self-hosted CI/CD pipeline.
- Source of Truth: Managed on a private Gitea instance.
- Mirroring: Changes are automatically pushed to this public GitHub repository for visibility and documentation.
- Updates: PDF revisions are uploaded to the R2 bucket; the Worker dynamically fetches the latest object on each request.
Note: This project is a demonstration of using modern serverless primitives to solve a simple hosting problem with an SRE mindset.