Web & Security 2025

Personal Portfolio Website

This website itself: bilingual with translated URLs, texts from PostgreSQL and its own CMS, a strict Content Security Policy, every resource from its own server, single sign-on through Keycloak and analytics only with consent.

Since

2025

Scope

Website, CMS, login and operations

Home page light
2
languages with translated URLs
0
CDNs, everything self-hosted
0
inline scripts and styles
7
security headers on every response

Technologies

PHP PostgreSQL nginx Docker Bootstrap Keycloak (OIDC) Content Security Policy Matomo (serverseitig) Open Graph hreflang Claude Code

The Challenge

A portfolio for system administration and DevOps is a reference in itself: it has to be secure, fast and privacy-friendly, work in two languages and be maintainable without touching code for every text change.

The Solution

A lean application in plain PHP behind nginx, in Docker containers. All texts live in PostgreSQL and are maintained through its own CMS; the website itself only reads them. An upstream reverse proxy sets the general security headers, and the website sets its own strict Content Security Policy.

Foundations

Bilingual and editorial

German and English with translated URLs, hreflang, sitemap and Open Graph data. Titles and descriptions of every project page come from the same texts as the page itself.

Security

Content Security Policy with default-src 'none', scripts and styles only from the site itself, no inline code. HSTS, nosniff, Referrer, Permissions and Cross-Origin policies on every response; the visitor IP is only taken from the upstream proxy.

Privacy

Bootstrap, icons and fonts are served by the site itself. Analytics are measured server-side by self-hosted Matomo and only after consent.

Login and contact

Protected areas such as “About me” sign in to the central Keycloak via OpenID Connect, with a login theme in the site's design. The contact form passes enquiries over an encrypted connection to a central contact API, with spam protection.

Delivery and maintenance

CSS and JavaScript carry the file's modification time in their address and are cached immutably for a year. Project pages follow a shared layout, screenshots are stored locally as WebP, and the overview can be filtered by category and by text search. The chosen design, light or dark, is set before the first paint.

Operations

The website runs in its own Docker containers, reachable only through the upstream reverse proxy on a network of its own. Changes are versioned in Git; texts change through the CMS without a new deploy.

Privacy

The site loads nothing from third parties. Analytics exist only after consent, and the decision can be changed at any time. Details from the contact form are used only to handle the enquiry.

Results

A website that shows what it describes: securely configured, privacy-friendly, bilingual and fully self-hosted. It is developed further with Claude Code as a development partner, with several sessions for website, login, reverse proxy and shared standards; decisions and approvals stay with me.

Gallery

Screenshots of this website.