TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Caddy 0.9 Released with All New Core

175 点作者 mmlkrx将近 9 年前

14 条评论

aexaey将近 9 年前
There are some features in Caddy that are simply outstanding - HTTP&#x2F;2 and Let&#x27;s Encrypt integration, to name a few - both pretty much work out-of-the-box with zero-configuration.<p>On the other hand, there are still some gaping holes - for example, to block (or allow) a 192.168.0.0&#x2F;17 IPv4 subnet in Caddy, one needs to do all of below:<p>- Install an addon [1];<p>- Which used to require recompilation, with 0.9 release you can just click an option during download, yay!;<p>- Add 128 ranges to cover this single subnet: 192.168.0.0-255, 192.168.1.0-255, ...192.168.127.0-255. Configuration doesn&#x27;t support subnets, only ranges. And only ranges in last octet, i.e. 192.168.1.0-255 (meaning 192.168.1.0&#x2F;24), or implied ranges by trailing octet(s) omission, i.e. 192.168 (meaning 192.168.0.0&#x2F;16) [2].<p>Oh, and ipv6 filtering doesn&#x27;t exist at all.<p>[1] <a href="https:&#x2F;&#x2F;caddyserver.com&#x2F;docs&#x2F;ipfilter" rel="nofollow">https:&#x2F;&#x2F;caddyserver.com&#x2F;docs&#x2F;ipfilter</a><p>[2] Which is mildly confusing notation too, since traditional UNIX inet_aton() call would interpret this as 192.0.0.168. Try typing &quot;ping 192.168&quot; on Linux.
评论 #12122068 未加载
评论 #12120656 未加载
评论 #12121339 未加载
评论 #12123249 未加载
评论 #12120646 未加载
评论 #12121808 未加载
Mojah将近 9 年前
Shameless plug: if you&#x27;re interested in knowing more about the Caddy webserver, I did an interview with Matt Holt - its creator - a few weeks ago on the SysCast podcast: <a href="http:&#x2F;&#x2F;podcast.sysca.st&#x2F;podcast&#x2F;1-matt-holt-creator-caddy-webserver&#x2F;" rel="nofollow">http:&#x2F;&#x2F;podcast.sysca.st&#x2F;podcast&#x2F;1-matt-holt-creator-caddy-we...</a>
djvdorp将近 9 年前
I would love to hear experiences from people&#x2F;companies using Caddy in production (for example, replacing nginx). The project looks very promising, but for production usage one might also like a decent group of other people using it in production.
评论 #12121296 未加载
embik将近 9 年前
The one thing that bothers me (which is not Caddy&#x27;s fault at all) is the plugin system. If I understand correctly, I have to recompile Caddy for every plugin I want to use, right? Sounds like a limitation with Go which is really unfortunate.
评论 #12120446 未加载
评论 #12121215 未加载
评论 #12120391 未加载
评论 #12120591 未加载
nemothekid将近 9 年前
I&#x27;m awesome to see Caddy come so far. We started using Caddy a little over a year ago, when we needed a replacement for nginx as a reverse proxy that could talk directly to mesos to figure out routing. At the time I rewrote the reverse proxy middleware to get the functionality I needed, but we ended up maintaining our own fork (which is now widely behind), because we needed our own plugins (and a mesos reverse proxy didn&#x27;t seem useful enough to integrate into caddy core), so its great to see first class support for plugins.
评论 #12122497 未加载
dvdplm将近 9 年前
Can Caddy work as a reverse proxy to other backend services? And if so, can I use QUIC for the backend and plain TCP for the front-end? Would that give me any benefit?
评论 #12120604 未加载
评论 #12121594 未加载
namsral将近 9 年前
API Bootstrapping<p>What if you could slap something like Caddy in front of any API and provide authentication, analytics even billing out of the box.<p><pre><code> - Rate limiting - Billing - Authentication and Authorization using OAuth or JWT - Analytics&#x2F;Metrics - Geo Location - TLS - HTTP2? - Image optimization - Content minification - Gzip - Signaling Slack&#x2F;Push&#x2F;SMS - Caching through cloud storage S3, BlackBlaze B2 - PostgREST</code></pre>
评论 #12121473 未加载
regecks将近 9 年前
When I went to use Caddy (because I love the idea of it), I was disappointed to find that there was no yum repo.<p>Of course, this makes sense because you have to compile the features in.<p>But, it would still be nice to have deployment automate-able. Maybe an Ansible role that combines the feature list you need and downloads it via an API.<p>It&#x27;s the major, and only reason I quit and went back to nginx.
评论 #12122339 未加载
评论 #12120699 未加载
electic将近 9 年前
How does this compare to NGINX? Especially around performance and security?
评论 #12120489 未加载
评论 #12120706 未加载
ciconia将近 9 年前
I just replaced nginx with caddy on a staging server. Works flawlessly, very easy to install. The docs could use some improvement though, especially in the way of examples.
Siecje将近 9 年前
Can I use Caddy to provide a single point of authentication for multiple apps when acting as a reverse proxy?<p>So a request to a protected resource needs to be authenticated if not then redirect to a URL (login form).<p>If login is successful then a token is provided which can be used for authentication.<p>If a request is authenticated successfully then it can proxy to the resource.
unethical_ban将近 9 年前
The static site generation was actually really cool, but I get the direction they&#x27;re going with being a wrapper around secure web services.
kylemathews将近 9 年前
Curious if there&#x27;s a plugin yet for adding caching headers to static assets?
评论 #12123719 未加载
eberkund将近 9 年前
Is anybody using Caddy on Windows? I use it on OS X via Laravel Valet which is excellent but I am looking for a replacement WAMP stack.