v2.4.0
版本发布时间: 2021-05-11 04:07:36
caddyserver/caddy最新发布版本:v2.9.0-beta.3(2024-11-06 02:32:38)
Caddy v2.4.0 is our first stable release of 2021, ushering in over 110 patches including new features and bug fixes. Thank you to the many contributors who helped make this possible!
Highlights:
- Secure remote management. You can now enable secure remote access to Caddy's admin API! It uses TLS mutual authentication, and you can even define permissions for different users. PR #3994
- Config pull at start. Caddy can be configured to load a different config at startup. This is useful if your config is federated through a separate system that doesn't have the ability to push configs to Caddy. This feature is modular, so configurations can be loaded different ways! PR #3994
- Server identity management. Caddy can automatically manage its own server identity certificate, which can be used when negotiating TLS connections with peers. This is required when enabling the secure admin API. PR #3994
-
Self-upgrade command. The new
caddy upgrade
command will replace the current Caddy binary with an upgraded one from our website, with all the same modules installed, including third-party plugins that are registered on our site! (We can use this code to add/remove modules later, too.) - Configure other apps from the HTTP Caddyfile. The global options block of the Caddyfile now allows configuration of Caddy apps other than HTTP (for example, dynamic_dns to keep DNS records pointed at your server with a dynamic IP address).
-
Caddyfile
fmt
lint check. When running with a Caddyfile, Caddy will emit a warning if the Caddyfile is not formatted withcaddy fmt
. -
New
abort
directive. Theabort
directive is a special case of thestatic_response
HTTP handler that prevents an HTTP response by aborting the handler chain immediately and forcefully closing the connection. -
New
error
directive. Theerror
directive returns internal error values in the HTTP handler chain, as if an HTTP error had occurred, causing your error routes to be invoked. -
Configure response interception from Caddyfile. The reverse_proxy is capable of intercepting responses from the backend, and now this is exposed in the Caddyfile with
handle_response
. -
Better
caddy list-modules
output. Now modules are organized by standard and non-standard modules, so you can easily see if a Caddy build has been customized. - Configure logging from Caddyfile. The process logs can now be configured from the global options of the Caddyfile.
- Better content negotiation. The file server can now be configured to serve precompressed sidecar files, and content encoding preferences are better configured and honored.
- Dark mode in directory listings. The file server's "browse" file listings now has a dark mode.
-
:warning: Removed the
logfmt
log encoder. It was broken anyways, and its deprecation has been warned in previous releases. -
:warning: Deprecated
common_log
format. It will be removed in a future release. Issue #4148 -
:warning: Deprecated
health_path
inreverse_proxy
directive. It has been replaced withhealth_uri
and will be removed in the future. - Numerous bug fixes and improvements. Thanks for the detailed, helpful bug reports! We appreciate your collaboration in making Caddy better.
New content for sponsors
I've started writing high-quality, in-depth chatpers about how to get the most out of Caddy in my new Expert Caddy series, exclusively for sponsors! If you or your company are sponsoring, you can have access to this content, which I'll continue adding to over time.
If you aren't sponsoring yet, please do so! Sponsorships fund my full-time development of Caddy, and that's especially vital if your business relies on Caddy.
Changelog (since RC 1)
For a detailed list of all commits since v2.3.0, please refer to prior pre-release changelogs.
bc221024 caddyfile: Fix caddy fmt
nesting not decrementing (#4157)
d4b2f1bc caddyhttp: Fix fallback for the error handler chain (#4131)
61642b76 caddytls: Run replacer on ask URL, for env vars (#4154)
77764714 encode: Default to order the formats are enabled for prefer
in Caddyfile (#4151)
f5db41ce encode: Drop prefer
from Caddyfile (#4156)
74f5d66c fileserver: Fix file
matcher with empty try_files
(#4147)
3cf443f0 httpcaddyfile: Add grace_period
global option (#4152)
a17c3b56 reverseproxy: Minor logging improvements
1、 caddy_2.4.0_checksums.txt 3.76KB
2、 caddy_2.4.0_freebsd_amd64.tar.gz 10.87MB
3、 caddy_2.4.0_freebsd_arm64.tar.gz 9.83MB
4、 caddy_2.4.0_freebsd_armv6.tar.gz 10.33MB
5、 caddy_2.4.0_freebsd_armv7.tar.gz 10.31MB
6、 caddy_2.4.0_linux_amd64.deb 10.93MB
7、 caddy_2.4.0_linux_amd64.tar.gz 10.88MB
8、 caddy_2.4.0_linux_arm64.deb 9.92MB
9、 caddy_2.4.0_linux_arm64.tar.gz 9.89MB
10、 caddy_2.4.0_linux_armv5.deb 10.37MB
11、 caddy_2.4.0_linux_armv5.tar.gz 10.34MB
12、 caddy_2.4.0_linux_armv6.deb 10.36MB
13、 caddy_2.4.0_linux_armv6.tar.gz 10.34MB
14、 caddy_2.4.0_linux_armv7.deb 10.34MB
15、 caddy_2.4.0_linux_armv7.tar.gz 10.32MB
16、 caddy_2.4.0_linux_ppc64le.deb 9.54MB
17、 caddy_2.4.0_linux_ppc64le.tar.gz 9.51MB
18、 caddy_2.4.0_linux_s390x.deb 10.53MB
19、 caddy_2.4.0_linux_s390x.tar.gz 10.45MB
20、 caddy_2.4.0_mac_amd64.tar.gz 11.43MB
21、 caddy_2.4.0_mac_arm64.tar.gz 11.25MB
22、 caddy_2.4.0_windows_amd64.zip 11MB
23、 caddy_2.4.0_windows_armv5.zip 10.58MB
24、 caddy_2.4.0_windows_armv6.zip 10.57MB
25、 caddy_2.4.0_windows_armv7.zip 10.55MB