summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-11-01vbump to v2.7.5HEADcaddy-cgiTom Barrett
2023-11-01caddy-cgitom barrett
2023-10-11admin: Respond with 4xx on non-existing config path (#5870)Norman Soetbeer
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2023-10-11ci: Force the Go version for govulncheck (#5879)Francis Lavoie
2023-10-11fileserver: Set canonical URL on browse template (#5867)Forza
* Browse.html: Add canonical URL and home-link When contents are equal, but maybe just a sort order is different, it is good to add `<link rel="canonical" href="base-path/" />`. This helps search engines propeely index the page. I also added a link to the home page with the name of `{{.Host}}` just above the bread crumbs to make the page clearer. https://paste.tnonline.net/files/28Wun5CQZiqA_Screenshot_20231007_134435_Opera.png * Update browse.html
2023-10-11tls: Add X25519Kyber768Draft00 PQ "curve" behind build tag (#5852)Bas Westerbaan
… when compiled with cfgo (https://github.com/cloudflare/go).
2023-10-11reverseproxy: Add more debug logs (#5793)Matt Holt
* reverseproxy: Add more debug logs This makes debug logging very noisy when reverse proxying, but I guess that's the point. This has shown to be useful in troubleshooting infrastructure issues. * Update modules/caddyhttp/reverseproxy/streaming.go Co-authored-by: Francis Lavoie <lavofr@gmail.com> * Update modules/caddyhttp/reverseproxy/streaming.go Co-authored-by: Francis Lavoie <lavofr@gmail.com> * Add opt-in `trace_logs` option * Rename to VerboseLogs --------- Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-10-11reverseproxy: Fix `least_conn` policy regression (#5862)Francis Lavoie
2023-10-11reverseproxy: Add logging for dynamic A upstreams (#5857)Francis Lavoie
2023-10-11reverseproxy: Replace health header placeholders (#5861)Francis Lavoie
2023-10-11httpcaddyfile: Sort TLS SNI matcher for deterministic JSON output (#5860)Francis Lavoie
* httpcaddyfile: Sort TLS SNI matcher, for deterministic adapt output * Update caddyconfig/httpcaddyfile/httptype.go --------- Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2023-10-11cmd: Fix exiting with custom status code, add `caddy -v` (#5874)Francis Lavoie
* Simplify variables for commands * Add --envfile support for adapt command * Carry custom status code for commands to os.Exit() * cmd: add `-v` and `--version` to root caddy command * Add `--envfile` to `caddy environ`, extract flag parsing to func --------- Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com>
2023-10-11reverseproxy: fix parsing Caddyfile fails for unlimited request/response ↵Fred Cox
buffers (#5828)
2023-10-10reverseproxy: Fix retries on "upstreams unavailable" error (#5841)Francis Lavoie
2023-10-10httpcaddyfile: Enable TLS for catch-all site if `tls` directive is specified ↵Đỗ Trọng Hải
(#5808)
2023-10-10encode: Add `application/wasm*` to the default content types (#5869)Christoph
2023-10-10fileserver: Add command shortcuts `-l` and `-a` (#5854)Kévin Dunglas
2023-10-10go.mod: Upgrade dependencies incl. x/net/httpMatthew Holt
Possibly important for the HTTP/2 Rapid Reset issue.
2023-10-07templates: Add dummy `RemoteAddr` to `httpInclude` request, proxy ↵Thanmay Nath
compatibility (#5845) * Enhancement: Allow X-Forwarded-For Header in httpInclude Virtual Requests The goal of this enhancement is to modify the funcHTTPInclude function in the Caddy codebase to include the X-Forwarded-For header in the virtual request. This change will enable reverse proxies to set the X-Forwarded-For header, ensuring that the client's IP address is correctly provided to the target endpoint. This modification is essential for applications that depend on the X-Forwarded-For header for various functionalities, such as authentication, logging, or content customization. * Updated tplcontext.go - set `virtReq.RemoteAddr = "127.0.0.1"` i have made the suggested changes * Apply suggestions from code review * Update modules/caddyhttp/templates/tplcontext.go --------- Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-10-05reverseproxy: Allow fallthrough for response handlers without routes (#5780)Patrick Koenig
2023-10-02fix: caddytest.AssertResponseCode error message (#5853)Kévin Dunglas
2023-10-02build(deps): bump goreleaser/goreleaser-action from 4 to 5 (#5847)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-01build(deps): bump actions/checkout from 3 to 4 (#5846)dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-26caddyhttp: Use LimitedReader for HTTPRedirectListenerMatthew Holt
2023-09-15fileserver: browse template SVG icons and UI tweaks (#5812)glowinthedark
* fileserver browse.html UI tweaks: folder-symlink icon, search fileserver browse.html UI tweaks: folder-symlink icon, search - ui - add folder-symlink SVG icon - search: use `<input type="search">` instead of `text` - fix npe with `sizebar.style.width` = null in grid mode * tabify whitespace Co-authored-by: Francis Lavoie <lavofr@gmail.com> --------- Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-09-10reverseproxy: fix nil pointer dereference in AUpstreams.GetUpstreams (#5811)Pascal Vorwerk
fix a nil pointer dereference in AUpstreams.GetUpstreams when AUpstreams.Versions is not set (fixes caddyserver#5809) Signed-off-by: Pascal Vorwerk <info@fossores.de>
2023-09-08httpcaddyfile: fix placeholder shorthands in named routes (#5791)Đỗ Trọng Hải
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-09-07cmd: Prevent overwriting existing env vars with `--envfile` (#5803)Evan Van Dam
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-09-05ci: Run govulncheck (#5790)Đỗ Trọng Hải
* feat(ci): check vuln Go mods in CI * fix(ci): correct directive for govulncheck * refactor(ci): move govulncheck to lint.yml * refactor(lint): move govulncheck to different job
2023-08-29logging: query filter for array of strings (#5779)Paul Jeannot
Co-authored-by: Matt Holt <mholt@users.noreply.github.com> Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-08-29logging: Clone array on log filters, prevent side-effects (#5786)Francis Lavoie
Fixes https://caddy.community/t/is-caddy-mutating-header-content-from-logging-settings/20947
2023-08-29fileserver: Export BrowseTemplateMatthew Holt
This allows programs embedding Caddy to customize the browse template.
2023-08-25ci: ensure short-sha is exported correctly on all platforms (#5781)Mohammed Al Sahaf
2023-08-24caddyfile: Fix case where heredoc marker is empty after newline (#5769)Francis Lavoie
Fixes `panic: runtime error: slice bounds out of range [:3] with capacity 2` Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2023-08-24go.mod: Update quic-go to v0.38.0 (#5772)WeidiDeng
* go.mod: Update quic-go to v0.38.0 * run "go mod tidy" --------- Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2023-08-23chore: Appease gosec linter (#5777)Matt Holt
These happen to be harmless memory aliasing but I guess the linter can't know that and we can't really prove it in general.
2023-08-22replacer: change timezone to UTC for "time.now.http" placeholders (#5774)WeidiDeng
2023-08-20caddyfile: Adjust error formatting (#5765)Francis Lavoie
2023-08-19update quic-go to v0.37.6 (#5767)Marten Seemann
2023-08-19httpcaddyfile: Stricter errors for site and upstream address schemes (#5757)Karun Agarwal
Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com> Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-08-19caddyfile: Loosen heredoc parsing (#5761)Francis Lavoie
2023-08-18fileserver: docs: clarify the ability to produce JSON array with `browse` ↵Mohammed Al Sahaf
(#5751)
2023-08-18fix package typo (#5764)guangwu
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-08-17go.mod: Upgrade CertMagic and quic-goMatthew Holt
2023-08-17reverseproxy: Always return new upstreams (fix #5736) (#5752)Matt Holt
* reverseproxy: Always return new upstreams (fix #5736) * Fix healthcheck logger race
2023-08-14ci: use gci linter (#5708)Jacob Gadikian
* use gofmput to format code * use gci to format imports * reconfigure gci * linter autofixes * rearrange imports a little * export GOOS=windows golangci-lint run ./... --fix
2023-08-11fileserver: Slightly more fitting iconsMatthew Holt
2023-08-09cmd: Require config for caddy validate (fix #5612) (#5614)pistasjis
* Require config for caddy validate - fixes #5612 Signed-off-by: Pistasj <hi@pistasjis.net> * Try making adjacent Caddyfile check its own function Signed-off-by: Pistasj <hi@pistasjis.net> * add Francis' suggestion Co-authored-by: Francis Lavoie <lavofr@gmail.com> * Refactor * Fix borked commit, sigh --------- Signed-off-by: Pistasj <hi@pistasjis.net> Co-authored-by: Francis Lavoie <lavofr@gmail.com> Co-authored-by: Matthew Holt <mholt@users.noreply.github.com>
2023-08-09Fix testsMatthew Holt
I thought Go ordered JSON objects when marshaling, but I guess not.
2023-08-09caddytls: Update docs for on-demand configMatthew Holt