TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Moving my website from Netlify to Caddy

29 pointsby twapi7 months ago

7 comments

jicea7 months ago
I really loves Caddy, it has replaced nginx in my go-to HTTP server. It&#x27;s really simple and powerfull, one nice example is how simple you can deploy applications with zero downtine [1].<p>On testing HTTP requests, I&#x27;d suggest Hurl [2], (I&#x27;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.<p>For instance, test_site_is_up.rb will be replaced by a simple text file:<p><pre><code> GET https:&#x2F;&#x2F;alexwlchan.net HTTP 200 [Asserts] body contains &quot;This website is a place to share stuff I find interesting or fun.&quot; GET https:&#x2F;&#x2F;alexwlchan.net&#x2F;articles&#x2F; HTTP 200 [Asserts] body contains &quot;Articles&quot; # etc... </code></pre> Testing alternate domains (test_alternate_domains.rb) could be:<p><pre><code> GET http:&#x2F;&#x2F;alexwlchan.net HTTP 308 Location: https:&#x2F;&#x2F;alexwlchan.net&#x2F; GET http:&#x2F;&#x2F;alexwlchan.net&#x2F;contact&#x2F; HTTP 301 Location https:&#x2F;&#x2F;alexwlchan.net&#x2F; # etc... </code></pre> Give it a try!<p>[1]: <a href="https:&#x2F;&#x2F;www.lambrospetrou.com&#x2F;articles&#x2F;server-deploy-scripts&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.lambrospetrou.com&#x2F;articles&#x2F;server-deploy-scripts...</a><p>[2]: <a href="https:&#x2F;&#x2F;hurl.dev" rel="nofollow">https:&#x2F;&#x2F;hurl.dev</a>
Imustaskforhelp7 months ago
cloudflare pages github pages<p>&#x2F; basically any git provider provides pages like codeberg &#x2F; framagit &#x2F; disroot git<p>You don&#x27;t need to pay literally anything.<p>You could point it to your own domain.<p>I have seen many professional people use github pages as their blog pages.<p>You can use ci &#x2F; cd actions to basically just write markdown push it and it would convert to html and automatically reload github pages<p>Comments can be used via cactus and many many others I think <a href="https:&#x2F;&#x2F;rochacbruno.github.io&#x2F;marmite&#x2F;enabling-comments.html" rel="nofollow">https:&#x2F;&#x2F;rochacbruno.github.io&#x2F;marmite&#x2F;enabling-comments.html</a><p>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 .<p>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 :)
colesantiago7 months ago
I don&#x27;t get why anyone would use Netlify for a personal website or any website nowadays.<p>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&#x27;t get a huge uncontrolled bill.
评论 #42041011 未加载
评论 #42040085 未加载
nchmy7 months ago
Caddy is great. But why didn&#x27;t they just put any cdn in front of netlify (or caddy as well)? Not only would it reduce the traffic to the static site to essentially 0, it would serve requests nearly instantaneously from the edge.
_joel7 months ago
Caddy and self-hosting&#x27;s cool and all, but I think I&#x27;d miss push to git to deploy and just not having to manage &#x27;stuff&#x27;. Although, I did move a site from netlify to cloudflare (free) and still have this facility.
评论 #42039911 未加载
评论 #42039927 未加载
评论 #42039909 未加载
nunez7 months ago
Going with Ruby for the test suite but not using RSpec and Capybara is an interesting choice. Why?
nusl7 months ago
Netlify&#x27;s pricing is pretty insane for bandwidth, yeah. They also are quite brutal when it comes to your site getting DOSed or some other form of traffic flood.