Steffen Busch 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2ac09fdb20 
							
						 
					 
					
						
						
							
							requestbody: Fix ContentLength calculation after body replacement ( #6896 )  
						
						
						
						
					 
					
						2025-03-12 22:18:02 +00:00 
						 
				 
			
				
					
						
							
							
								Adrien Pensart 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dccf3d8982 
							
						 
					 
					
						
						
							
							requestbody: Add set option to replace request body ( #5795 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Lint / lint (macos-14, mac) (push) Waiting to run 
				
			 
		
			
				
	Lint / lint (windows-latest, windows) (push) Waiting to run 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.24.1, ubuntu-latest, 0, 1.24, linux) (push) Failing after 1m31s 
				
			 
		
			
				
	Tests / test (s390x on IBM Z) (push) Has been skipped 
				
			 
		
			
				
	Tests / goreleaser-check (push) Has been skipped 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, aix) (push) Successful in 1m22s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, darwin) (push) Successful in 1m20s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, dragonfly) (push) Successful in 1m19s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, freebsd) (push) Successful in 1m21s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, illumos) (push) Successful in 1m18s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, linux) (push) Successful in 1m19s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, netbsd) (push) Successful in 1m26s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, openbsd) (push) Successful in 1m26s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, solaris) (push) Successful in 1m19s 
				
			 
		
			
				
	Cross-Build / build (~1.24.1, 1.24, windows) (push) Successful in 1m18s 
				
			 
		
			
				
	Lint / lint (ubuntu-latest, linux) (push) Successful in 2m6s 
				
			 
		
			
				
	Lint / govulncheck (push) Successful in 1m18s 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.24.1, macos-14, 0, 1.24, mac) (push) Has been cancelled 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.24.1, windows-latest, True, 1.24, windows) (push) Has been cancelled 
				
			 
		
		
	 
 
	 
						
						Co-authored-by: Matt Holt <mholt@users.noreply.github.com> 
						
						
					 
					
						2025-03-12 19:38:51 +00:00 
						 
				 
			
				
					
						
							
							
								Rishita Shaw 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8c3dd3de70 
							
						 
					 
					
						
						
							
							requestbody: Type-based error handling for MaxBytesError ( #6701 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.22.3, windows-latest, True, 1.22, windows) (push) Waiting to run 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.23.0, windows-latest, True, 1.23, windows) (push) Waiting to run 
				
			 
		
			
				
	Lint / lint (macos-14, mac) (push) Waiting to run 
				
			 
		
			
				
	Lint / lint (windows-latest, windows) (push) Waiting to run 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.22.3, ubuntu-latest, 0, 1.22, linux) (push) Failing after 2m39s 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.23.0, ubuntu-latest, 0, 1.23, linux) (push) Failing after 3m45s 
				
			 
		
			
				
	Tests / test (s390x on IBM Z) (push) Has been skipped 
				
			 
		
			
				
	Tests / goreleaser-check (push) Has been skipped 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, aix) (push) Successful in 1m22s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, darwin) (push) Successful in 1m23s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, dragonfly) (push) Successful in 1m22s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, freebsd) (push) Successful in 1m21s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, illumos) (push) Successful in 1m22s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, linux) (push) Successful in 1m24s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, netbsd) (push) Successful in 1m23s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, openbsd) (push) Successful in 1m21s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, solaris) (push) Successful in 1m23s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, windows) (push) Successful in 1m21s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, aix) (push) Successful in 3m43s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, darwin) (push) Successful in 1m16s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, dragonfly) (push) Successful in 1m14s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, freebsd) (push) Successful in 1m14s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, illumos) (push) Successful in 1m13s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, linux) (push) Successful in 1m14s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, netbsd) (push) Successful in 1m14s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, openbsd) (push) Successful in 1m13s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, solaris) (push) Successful in 1m14s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, windows) (push) Successful in 1m13s 
				
			 
		
			
				
	Lint / lint (ubuntu-latest, linux) (push) Successful in 4m28s 
				
			 
		
			
				
	Lint / govulncheck (push) Successful in 2m41s 
				
			 
		
		
	 
 
	 
						
						* fix: handle "request body too large" error using type assertion
* fix: address overlooked nil check for MaxBytesError
* fix: replace type assertion with errors.As() for MaxBytesError 
						
						
					 
					
						2024-11-22 19:45:58 +00:00 
						 
				 
			
				
					
						
							
							
								Kévin Dunglas 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f4bf4e0097 
							
						 
					 
					
						
						
							
							perf: use zap's Check() to prevent useless allocs ( #6560 )  
						
						... 
						
						
	
		
			
	 
	
	
		
	
	
		
			
				
	Tests / test (s390x on IBM Z) (push) Has been skipped 
				
			 
		
			
				
	Tests / goreleaser-check (push) Successful in 40s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, aix) (push) Successful in 2m55s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, dragonfly) (push) Successful in 3m1s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, freebsd) (push) Successful in 3m1s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, netbsd) (push) Successful in 3m1s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, windows) (push) Successful in 3m1s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, darwin) (push) Failing after 13m23s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, aix) (push) Successful in 2m40s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, illumos) (push) Failing after 11m51s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, linux) (push) Failing after 11m47s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, darwin) (push) Successful in 2m29s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, linux) (push) Successful in 2m39s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, openbsd) (push) Failing after 13m27s 
				
			 
		
			
				
	Cross-Build / build (~1.22.3, 1.22, solaris) (push) Failing after 13m27s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, netbsd) (push) Successful in 2m41s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, openbsd) (push) Successful in 2m54s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, solaris) (push) Successful in 2m40s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, dragonfly) (push) Failing after 14m19s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, freebsd) (push) Failing after 14m10s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, illumos) (push) Failing after 14m2s 
				
			 
		
			
				
	Cross-Build / build (~1.23.0, 1.23, windows) (push) Failing after 11m58s 
				
			 
		
			
				
	Lint / lint (ubuntu-latest, linux) (push) Failing after 3m44s 
				
			 
		
			
				
	Lint / govulncheck (push) Successful in 2m18s 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.22.3, macos-14, 0, 1.22, mac) (push) Has been cancelled 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy, ~1.23.0, macos-14, 0, 1.23, mac) (push) Has been cancelled 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.22.3, windows-latest, True, 1.22, windows) (push) Has been cancelled 
				
			 
		
			
				
	Tests / test (./cmd/caddy/caddy.exe, ~1.23.0, windows-latest, True, 1.23, windows) (push) Has been cancelled 
				
			 
		
			
				
	Lint / lint (macos-14, mac) (push) Has been cancelled 
				
			 
		
			
				
	Lint / lint (windows-latest, windows) (push) Has been cancelled 
				
			 
		
		
	 
 
	 
						
						* perf: use zap's Check() to prevent useless allocs
* fix
* fix
* fix
* fix
* restore previous replacer behavior
* fix linter 
						
						
					 
					
						2024-09-13 11:16:37 -06:00 
						 
				 
			
				
					
						
							
							
								Matt Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6d97d8d87b 
							
						 
					 
					
						
						
							
							caddyhttp: Address some Go 1.20 features ( #6252 )  
						
						... 
						
						
						
						Co-authored-by: Francis Lavoie <lavofr@gmail.com> 
						
						
					 
					
						2024-04-24 00:05:57 +00:00 
						 
				 
			
				
					
						
							
							
								Francis Lavoie 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							750d0b8331 
							
						 
					 
					
						
						
							
							caddyfile: Normalize & flatten all unmarshalers ( #6037 )  
						
						
						
						
					 
					
						2024-01-23 19:36:59 -05:00 
						 
				 
			
				
					
						
							
							
								Jacob Gadikian 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d6f86cccf5 
							
						 
					 
					
						
						
							
							ci: use gci linter ( #5708 )  
						
						... 
						
						
						
						* 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-14 09:41:15 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3d616e8c6d 
							
						 
					 
					
						
						
							
							requestbody: Return HTTP 413 ( fix   #4558 )  
						
						
						
						
					 
					
						2022-03-11 12:34:55 -07:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1ac6351705 
							
						 
					 
					
						
						
							
							Revert "requestbody: Allow overwriting remote address"  
						
						... 
						
						
						
						This reverts commit 0bf2046da7f2f5bf1b7d9fa055ae28de9a06ddaf.
No actual use case. 
						
						
					 
					
						2021-01-19 18:43:01 -07:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0bf2046da7 
							
						 
					 
					
						
						
							
							requestbody: Allow overwriting remote address  
						
						... 
						
						
						
						An experimental feature, let's see if it's useful. 
						
						
					 
					
						2021-01-11 13:35:12 -07:00 
						 
				 
			
				
					
						
							
							
								Nicola Piccinini 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							670b723e38 
							
						 
					 
					
						
						
							
							requestbody: Add Caddyfile support ( #3859 )  
						
						... 
						
						
						
						* Add Caddyfile support for request_body:
```
  request_body {
    max_size 10000000
  }
```
* Improve Caddyfile parser for request_body module
* Remove unnecessary `continue`
* Add sample for caddyfile_adapt_test 
						
						
					 
					
						2020-11-16 11:43:39 -07:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							341d4fb805 
							
						 
					 
					
						
						
							
							Remove some non-essential plugins from this repo ( #2780 )  
						
						... 
						
						
						
						Brotli encoder, jsonc and json5 config adapters, and the unfinished
HTTP cache handler are removed.
They will be available in separate repos. 
						
						
					 
					
						2020-03-24 10:37:47 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							95ed603de7 
							
						 
					 
					
						
						
							
							Improve godocs all around  
						
						... 
						
						
						
						These will be used in the new automated documentation system 
						
						
					 
					
						2019-12-23 12:45:35 -07:00 
						 
				 
			
				
					
						
							
							
								Matt Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3c90e370a4 
							
						 
					 
					
						
						
							
							v2: Module documentation; refactor LoadModule(); new caddy struct tags ( #2924 )  
						
						... 
						
						
						
						This commit goes a long way toward making automated documentation of
Caddy config and Caddy modules possible. It's a broad, sweeping change,
but mostly internal. It allows us to automatically generate docs for all
Caddy modules (including future third-party ones) and make them viewable
on a web page; it also doubles as godoc comments.
As such, this commit makes significant progress in migrating the docs
from our temporary wiki page toward our new website which is still under
construction.
With this change, all host modules will use ctx.LoadModule() and pass in
both the struct pointer and the field name as a string. This allows the
reflect package to read the struct tag from that field so that it can
get the necessary information like the module namespace and the inline
key.
This has the nice side-effect of unifying the code and documentation. It
also simplifies module loading, and handles several variations on field
types for raw module fields (i.e. variations on json.RawMessage, such as
arrays and maps).
I also renamed ModuleInfo.Name -> ModuleInfo.ID, to make it clear that
the ID is the "full name" which includes both the module namespace and
the name. This clarity is helpful when describing module hierarchy.
As of this change, Caddy modules are no longer an experimental design.
I think the architecture is good enough to go forward. 
						
						
					 
					
						2019-12-10 13:36:46 -07:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c9980fd367 
							
						 
					 
					
						
						
							
							Refactor Caddyfile adapter and module registration  
						
						... 
						
						
						
						Use piles from which to draw config values.
Module values can return their name, so now we can do two-way mapping
from value to name and name to value; whereas before we could only map
name to value. This was problematic with the Caddyfile adapter since
it receives values and needs to know the name to put in the config. 
						
						
					 
					
						2019-08-21 10:46:35 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							63674ba081 
							
						 
					 
					
						
						
							
							Rename handler modules to use http.handlers namespace  
						
						
						
						
					 
					
						2019-07-11 22:03:12 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fdd871e177 
							
						 
					 
					
						
						
							
							go.mod: Append /v2 to module name; update all import paths  
						
						... 
						
						
						
						See https://github.com/golang/go/wiki/Modules#semantic-import-versioning  
						
						
					 
					
						2019-07-02 12:37:06 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							3177ee8010 
							
						 
					 
					
						
						
							
							Add license  
						
						
						
						
					 
					
						2019-06-30 16:07:58 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							5137859e47 
							
						 
					 
					
						
						
							
							Rename caddy2 -> caddy  
						
						... 
						
						
						
						Removes the version from the package name 
						
						
					 
					
						2019-06-14 11:58:28 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							613aecb898 
							
						 
					 
					
						
						
							
							Change import paths to GitHub package names  
						
						
						
						
					 
					
						2019-06-04 13:52:37 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Holt 
							
						 
					 
					
						
						
						
						
							
						
						
							9e576c76e7 
							
						 
					 
					
						
						
							
							Add request_body middleware and some limits to HTTP servers  
						
						
						
						
					 
					
						2019-05-23 13:16:34 -06:00