v2.5.1
版本发布时间: 2022-05-07 01:23:16
caddyserver/caddy最新发布版本:v2.9.0-beta.3(2024-11-06 02:32:38)
This is a minor patch release that fixes some bugs and also enhances reverse_proxy
with capabilities that weren't ready in time for v2.5.0.
Highlights
- Fixed regression in Unix socket admin endpoints.
- Fixed regression in
caddy trust
commands. - Hash-based load balancing policies (ip_hash, uri_hash, header, and cookie) use an improved highest-random-weight (HRW) algorithm for increased consistency. The new rendezvous hash will ensure a client or request is consistently mapped to a particular upstream even if the list of upstreams changes.
- The reverse proxy is now able to rewrite the method and URI on its internal copy of the request that goes to the upstream. Combined with new
handle_response
capabilities, this enables the reverse proxy to fire off "pre-check requests" (for lack of a better term) to make routing decisions based on the results of that call. This enables a commonly-emerging pattern called forward authentication wherein a backend is queried to assess a client's authorization to be proxied. The full, verbose config for this is very flexible but tedious, so we made a new wrapper directive calledforward_auth
that eliminates the boilerplate (very similar to thephp_fastcgi
directive):
forward_auth authelia:9091 {
uri /api/verify?rd=https://auth.example.com
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
}
This works with authentication providers like Authelia, and more.
What's Changed
- caddypki: Fix
caddy trust
command to use the correct API endpoint by @francislavoie in https://github.com/caddyserver/caddy/pull/4730 - reverseproxy: Improve hashing LB policies with HRW by @mholt in https://github.com/caddyserver/caddy/pull/4724
- Add missing backticks by @mahgoh in https://github.com/caddyserver/caddy/pull/4737
- caddyhttp: Improve listen addr error message for IPv6 by @francislavoie in https://github.com/caddyserver/caddy/pull/4740
- cmd: Fix unix socket addresses for admin API requests by @francislavoie in https://github.com/caddyserver/caddy/pull/4742
- logging: Use
RedirectStdLog
by @francislavoie in https://github.com/caddyserver/caddy/pull/4732 - logging: Implement rename filter, changes field key names by @francislavoie in https://github.com/caddyserver/caddy/pull/4745
- httpcaddyfile: Fix duplicate access log when debug is on by @francislavoie in https://github.com/caddyserver/caddy/pull/4746
- reverseproxy: Fix Caddyfile support for
replace_status
by @francislavoie in https://github.com/caddyserver/caddy/pull/4754 - templates: Add custom template function registration by @kroppt in https://github.com/caddyserver/caddy/pull/4757
- reverseproxy: Permit resolver addresses to not specify a port by @francislavoie in https://github.com/caddyserver/caddy/pull/4760
- caddyfile: Shortcut for
remote_ip
for private IP ranges by @francislavoie in https://github.com/caddyserver/caddy/pull/4753 - reverseproxy: Support performing pre-check requests by @francislavoie in https://github.com/caddyserver/caddy/pull/4739
- map: Prevent output destinations overlap with Caddyfile shorthands by @francislavoie in https://github.com/caddyserver/caddy/pull/4657
New Contributors
- @mahgoh made their first contribution in https://github.com/caddyserver/caddy/pull/4737
Changelog
- ec86a2f7 caddyfile: Shortcut for
remote_ip
for private IP ranges (#4753) - dcc98da4 caddyhttp: Improve listen addr error message for IPv6 (#4740)
- d543ad1f caddypki: Fix
caddy trust
command to use the correct API endpoint (#4730) - 2e4c0915 cmd: Fix unix socket addresses for admin API requests (#4742)
- af732151 httpcaddyfile: Fix duplicate access log when debug is on (#4746)
- 0be3d995 logging: Implement rename filter, changes field key names (#4745)
- 3017b245 logging: Use
RedirectStdLog
to capture more stdlib logs (#4732) - f7be0ee1 map: Prevent output destinations overlap with Caddyfile shorthands (#4657)
- 4a223f52 reverseproxy: Fix Caddyfile support for
replace_status
(#4754) - 40b193fb reverseproxy: Improve hashing LB policies with HRW (#4724)
- e7fbee8c reverseproxy: Permit resolver addresses to not specify a port (#4760)
- f6900fcf reverseproxy: Support performing pre-check requests (#4739)
- e84e19a0 templates: Add custom template function registration (#4757)
- 3ab64838 templates: Add missing backticks in docs (#4737)
Full Changelog: https://github.com/caddyserver/caddy/compare/v2.5.0...v2.5.1
1、 caddy_2.5.1_checksums.txt 3.91KB
2、 caddy_2.5.1_freebsd_amd64.tar.gz 12.99MB
3、 caddy_2.5.1_freebsd_arm64.tar.gz 11.89MB
4、 caddy_2.5.1_freebsd_armv6.tar.gz 12.5MB
5、 caddy_2.5.1_freebsd_armv7.tar.gz 12.48MB
6、 caddy_2.5.1_linux_amd64.deb 13.54MB
7、 caddy_2.5.1_linux_amd64.tar.gz 13.01MB
8、 caddy_2.5.1_linux_arm64.deb 12.34MB
9、 caddy_2.5.1_linux_arm64.tar.gz 11.9MB
10、 caddy_2.5.1_linux_armv5.deb 12.98MB
11、 caddy_2.5.1_linux_armv5.tar.gz 12.52MB
12、 caddy_2.5.1_linux_armv6.deb 12.97MB
13、 caddy_2.5.1_linux_armv6.tar.gz 12.51MB
14、 caddy_2.5.1_linux_armv7.deb 12.95MB
15、 caddy_2.5.1_linux_armv7.tar.gz 12.49MB
16、 caddy_2.5.1_linux_ppc64le.deb 11.94MB
17、 caddy_2.5.1_linux_ppc64le.tar.gz 11.5MB
18、 caddy_2.5.1_linux_s390x.deb 13.26MB
19、 caddy_2.5.1_linux_s390x.tar.gz 12.56MB
20、 caddy_2.5.1_mac_amd64.tar.gz 13.65MB
21、 caddy_2.5.1_mac_arm64.tar.gz 13.2MB
22、 caddy_2.5.1_windows_amd64.zip 13MB
23、 caddy_2.5.1_windows_arm64.zip 11.9MB
24、 caddy_2.5.1_windows_armv5.zip 12.63MB
25、 caddy_2.5.1_windows_armv6.zip 12.63MB
26、 caddy_2.5.1_windows_armv7.zip 12.6MB