Moving my website from Netlify to Caddy
Alex Chan migrated their website from Netlify to a Linux server using Caddy to reduce costs, achieving 1TB bandwidth for $5/month, with minimal downtime and improved control over configurations.
Read original articleAlex Chan recently migrated their website from Netlify to a Linux server using Caddy, primarily due to rising bandwidth costs associated with Netlify's pricing structure. Chan was on the Starter plan, which allowed for 100GB of bandwidth per month, but increasing traffic, especially after a popular post, led to overage charges. The new setup on Linode offers a more cost-effective solution at $5 per month with 1TB of bandwidth. Chan chose Caddy for its ease of use, particularly in managing HTTPS certificates, and found the migration process smooth. They implemented a testing suite to ensure the website's functionality during the transition, which also helped identify previous configuration errors on Netlify. After successfully updating the DNS records and configuring Caddy, the migration resulted in minimal downtime. Chan expressed satisfaction with the new setup, appreciating the flexibility and control it provides compared to Netlify. They plan to share insights about their Caddy configuration in future posts, emphasizing the benefits of running a personal web server for the open web.
- Alex Chan migrated their website from Netlify to a Linux server using Caddy to reduce bandwidth costs.
- The new hosting on Linode costs $5 per month and includes 1TB of bandwidth.
- Caddy was chosen for its user-friendly setup and management of HTTPS certificates.
- A testing suite was created to ensure website functionality during the migration.
- The transition resulted in minimal downtime and improved control over the website's configuration.
Related
Cloudflare has made it too easy to access your homelab on the internet
Cloudflare has improved remote access to homelabs since 2017, simplifying setup with tools like Cloudflare Tunnels and Zero Trust, enhancing security and performance for users in about two hours.
Set Up a $4/Mo Hetzner VM to Skip the Serverless Tax
The article outlines a beginner-friendly guide to setting up a Hetzner virtual machine for $4/month, covering SSL installation, DNS configuration, and web application deployment using GitHub and PM2.
Make Your Own CDN with NetBSD
The article outlines setting up a self-hosted CDN using NetBSD, Varnish, and nginx, detailing installation, SSL management, configuration, and benefits like control, device compatibility, and geo-replication options.
Setting up a cache server for apt packages
DJ Adams established an apt-cacher-ng cache server on a repurposed Asus Chromebox to minimize data usage for Debian packages, emphasizing security and monitoring for efficient package management.
Tell HN: Switched from Lightsail to Hetzner Cloud, 2 blogs for $4 a month
The author switched from AWS Lightsail to Hetzner Cloud for cost efficiency, using a $4 ARM Ubuntu server and resolving domain configuration issues by migrating to AWS, while planning future projects.
On testing HTTP requests, I'd suggest Hurl [2], (I'm one of the maintainer). You will trade Ruby unit tests for a tailored HTTP text file format but I think it can shine for this kind of migration. Tests will be run in parallel, really fast.
For instance, test_site_is_up.rb will be replaced by a simple text file:
GET https://alexwlchan.net
HTTP 200
[Asserts]
body contains "This website is a place to share stuff I find interesting or fun."
GET https://alexwlchan.net/articles/
HTTP 200
[Asserts]
body contains "Articles"
# etc...
Testing alternate domains (test_alternate_domains.rb) could be: GET http://alexwlchan.net
HTTP 308
Location: https://alexwlchan.net/
GET http://alexwlchan.net/contact/
HTTP 301
Location https://alexwlchan.net/
# etc...
Give it a try![1]: https://www.lambrospetrou.com/articles/server-deploy-scripts...
[2]: https://hurl.dev
/ basically any git provider provides pages like codeberg / framagit / disroot git
You don't need to pay literally anything.
You could point it to your own domain.
I have seen many professional people use github pages as their blog pages.
You can use ci / cd actions to basically just write markdown push it and it would convert to html and automatically reload github pages
Comments can be used via cactus and many many others I think https://rochacbruno.github.io/marmite/enabling-comments.html
I just installed caddy on my local linux archlinux system , I love golang but I had never bothered installing caddy locally , well it seems really cool , I have currently installed marmite as well locally .
My problem though to moving to caddy is why even pay 5$ when you can get it for free. I have installed it on my pc just for learning experiences :)
Unless I am missing something, there are places where you can host a website for as close to $0, even if you start to get over 100GB of traffic, wouldn't get a huge uncontrolled bill.
Related
Cloudflare has made it too easy to access your homelab on the internet
Cloudflare has improved remote access to homelabs since 2017, simplifying setup with tools like Cloudflare Tunnels and Zero Trust, enhancing security and performance for users in about two hours.
Set Up a $4/Mo Hetzner VM to Skip the Serverless Tax
The article outlines a beginner-friendly guide to setting up a Hetzner virtual machine for $4/month, covering SSL installation, DNS configuration, and web application deployment using GitHub and PM2.
Make Your Own CDN with NetBSD
The article outlines setting up a self-hosted CDN using NetBSD, Varnish, and nginx, detailing installation, SSL management, configuration, and benefits like control, device compatibility, and geo-replication options.
Setting up a cache server for apt packages
DJ Adams established an apt-cacher-ng cache server on a repurposed Asus Chromebox to minimize data usage for Debian packages, emphasizing security and monitoring for efficient package management.
Tell HN: Switched from Lightsail to Hetzner Cloud, 2 blogs for $4 a month
The author switched from AWS Lightsail to Hetzner Cloud for cost efficiency, using a $4 ARM Ubuntu server and resolving domain configuration issues by migrating to AWS, while planning future projects.