展示HN:我正在用Rust重写一个Web服务器,以提高速度和易用性。
Show HN: I'm rewriting a web server written in Rust for speed and ease of use

原始链接: https://ferron.sh/

你可能想了解一下Ferron。我用它几个月了,强烈推荐。 (…) 比nginx设置容易得多,自动TLS集成也轻松得多。 (…) 强烈推荐使用v2 docker镜像。它现在使用KDL进行配置,比YAML更简洁。语法足够灵活,可以创建一种自定义的DSL。Ferron用它来复制if语句,并用它们来按IP或header过滤访问。Michael Murphy System76工程师和Pop!_OS维护者

## Ferron:一个新的基于Rust的Web服务器 Dorian Niemiec 正在用 Rust 重写一个名为 Ferron ([ferron.sh](https://ferron.sh)) 的 Web 服务器,重点是速度和易用性。 重写旨在提高性能,尤其是在静态文件服务和反向代理方面,并采用更用户友好的配置格式。 默认情况下启用了自动 TLS。 首个发布候选版本已经可用,一些用户已经开始用它部署网站。 然而,关于基准测试方法出现了一些讨论,人们担心服务器比较不一致以及使用了自定义基准测试工具。 关于安装过程也存在争论,一些人提倡使用标准软件包管理器,而不是 `curl | bash` 方法。 尽管存在这些问题,该项目仍然引起了兴趣,用户称赞它比 Apache 和 Nginx 等成熟服务器更简单。 开发者欢迎反馈,并鼓励对 GitHub 上的开源项目做出贡献。 该项目旨在提供一个引人注目的替代方案,特别是对于寻求最佳性能的基于 Rust 的后端。
相关文章

原文

You may want to check out what Ferron is doing. I've been using it for a few months. Highly recommend. (...) Significantly easier to set up than nginx, and by far the most effortless auto TLS integration. (...) Highly recommend using the v2 docker images though. It now uses KDL for configuration, which is much cleaner than YAML. The syntax is versatile enough that you can create a custom DSL of sorts. Ferron uses it to replicate if statements, and uses them to filter access by IP or headers.

Michael Murphy

Engineer at System76 and Pop!_OS maintainer

联系我们 contact @ memedata.com