I moved my site from managed hosting to Akamai Cloud

I moved my personal site to a Linode VPS with Dokploy and found that nginx was dropping all six security headers.

For a long time, hosting my personal site meant pushing to GitHub and waiting for the deploy. The free tier served the site from edge nodes around the world, and I had nothing to maintain.

I had a Linode VPS on Akamai Cloud running Dokploy, a few Docker containers, and some personal tools. My website seemed like a good fit for that server, so I moved it there.


I’d written a Dockerfile and an nginx.conf months earlier, during an attempt I’d forgotten about. The multi-stage build used Node to build the Astro site and nginx Alpine to serve the static files. I’d configured gzip, cache headers, and six security headers. The Content-Security-Policy even named my Linode Object Storage bucket.


I replaced the old DNS record with an A record pointing to 192.46.210.163 and kept the CDN proxy in front of the origin. The site stayed up during the switch. Then I checked the response and found that all six security headers were missing, including Strict-Transport-Security and X-Frame-Options.

By default, if an nginx location block defines any add_header directives, nginx uses those in place of the parent server block’s directives. My location / block set cache-control headers, so nginx dropped the six security headers I’d set on the server. The config had been sitting that way since June.

I added the security headers to each location block. The missing headers took a separate check to catch because the site looked fine in a browser.


I can still deploy with git push. A GitHub webhook triggers Dokploy, Docker runs the container, and Traefik routes traffic to it. After I set the domain in Dokploy, Traefik requested a Let’s Encrypt certificate. The certificate now lives on the origin server, where I can inspect it along with the logs.

The CDN still serves static assets from edge nodes, so the switch to Linode as the origin left time to first byte and global performance where they were.


I can see why a team with a CMS might prefer managed hosting. For my own site, I wanted to know what would happen between a push to GitHub and a response in the browser. Tracking down six missing headers taught me more about that than the move itself.