v2.4.4

caddyserver/caddyv2.4.4Aug 30, 2021by github-actions[bot]

AI Summary

A release with numerous bug fixes and QoL improvements, including new admin API polling options and package management commands.

Key Highlights

  • Implementation of `load_interval` for pulling config on a timer.
  • New `add-package` and `remove-package` commands.
  • New `preferred_chains` global option for certificate selection.
  • New `try_files` override in the Caddyfile.

New Features

  • Admin API `load_interval` implementation.
  • New `add-package` and `remove-package` CLI commands.
  • New `preferred_chains` global option.
  • New `try_files` override in Caddyfile.

Full Release Notes

This release contains numerous bug fixes, updated dependencies, and QoL improvements.

**Update:** This release contains a known regression in the combination of `encode` and `reverse_proxy` modules; please use v2.4.5 instead.

Thanks to all contributors, and a special thanks to @francislavoie and @Mohammed90 for their dedication in helping to maintain the project and help others.

## Changelog

0bdb8aa8 acmeserver: Don't set host for directory links by default
2de7e14e acmeserver: Trim slashes from path prefix
c131339c admin: Implement load_interval to pull config on a timer (#4246)
a10910f3 admin: Sync server variables (fix #4260) (#4274)
51f125bd caddyfile: Better error message for missing site block braces (#4301)
d74913f8 caddyfile: Error on invalid site addresses containing comma (#4302)
b6f51254 caddyfile: keep error chain info in Dispenser.Errf (#4233)
1c6c7714 caddyhttp: Fix edgecase with auto HTTP->HTTPS logic (#4243)
42e140b1 caddyhttp: Fix incorrect determination of gRPC protocol (#4236)
c1cd192e caddyhttp: Updated the documentation for MatchQuery (#4295)
81e53180 caddytls: Remove "IssuerRaw" field
ce5a45db cmd: Fix paths when using an env file (#4296)
68c5c716 cmd: New `add-package` and `remove-package` commands (#4226)
9e333c39 cmd: use net.ErrClosed for matching returned error (#4289)
1b1e625c core: Unix ns and Unix ms time placeholders (#4280)
69c91448 encode: Tweak compression settings (#4215)
4245ceb6 fileserver: Add `disable_canonical_uris` Caddyfile subdirective (#4222)
191dc86f fileserver: Clarify docs about canonicalization
9e16e80f fileserver: Fix browse name_dir_first sorting (#4218)
885a9aaf go.mod: Update dependencies (close #4216)
f43fd6f3 go.mod: Upgrade CertMagic to v0.14.4
84b906a2 go.mod: Upgrade some dependencies
ab32440b httpcaddyfile: Add shortcut for proxy hostport placeholder (#4263)
b3d35a49 httpcaddyfile: Don't put localhost in public APs (fix #4220)
569ecdbd httpcaddyfile: Ensure hosts to skip for logs can always be collected (#4258)
bfbc459c httpcaddyfile: Improve unrecognized directive errors
403732c4 httpcaddyfile: Reorder some directives (#4311)
46d99aba logging: Add missing interface guards for replace filter (#4244)
124ba1ba logging: Prep for `common_log` removal (#4149)
8a974a4f logging: Warn for deprecated single_field encoder
e6c29ce0 reverseproxy: Incorporate latest proxy changes from stdlib (#4266)
d8822110 reverseproxy: Keep path to unix socket as dial address (#4232)
f70a7578 reverseproxy: Remove redundant flushing (#4299)