5c8b502964 
								
									
								
							
								 
							
						 
						
							
							
								
								fastcgi: Set SERVER_SOFTWARE, _NAME, and _PORT properly ( fixes   #2952 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								82bebfab8a 
								
									
								
							
								 
							
						 
						
							
							
								
								templates: Change functions, add front matter support, better markdown  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								be3849c267 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove markdown module  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								16ee985c22 
								
									
								
							
								 
							
						 
						
							
							
								
								admin: Only write most CORS headers in OPTIONS requests  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								95ed603de7 
								
									
								
							
								 
							
						 
						
							
							
								
								Improve godocs all around  
							
							
 
							
							
							These will be used in the new automated documentation system 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								cbb405f6aa 
								
									
								
							
								 
							
						 
						
							
							
								
								cmd: Eliminate unintended use of cgo  
							
							
 
							
							
							This means the stop command can only use the API to stop the instance;
no more signaling, unless we find a cgo-free way of doing it. 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								724c728678 
								
									
								
							
								 
							
						 
						
							
							
								
								rewrite: Attempt query string fix ( #2891 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								21408212da 
								
									
								
							
								 
							
						 
						
							
							
								
								http: query and query_string placeholders should use RawQuery, probably  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								fe516575db 
								
									
								
							
								 
							
						 
						
							
							
								
								core: Add ReplaceFunc method to Replacer to allow dynamic replacements  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								080a62d5c5 
								
									
								
							
								 
							
						 
						
							
							
								
								Update go.mod; use CertMagic v0.9.0  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								dae4913fe3 
								
									
								
							
								 
							
						 
						
							
							
								
								http: Patch path matcher to ignore dots and spaces ( #2917 )  
							
							
 
							
							
							(Try saying "patch path match" ten times fast) 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								6455efa5d3 
								
									
								
							
								 
							
						 
						
							
							
								
								admin: POST /... expands and appends all array elements  
							
							
 
							
							
							Makes it easy to append many items to an array in one command 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ab17a3a37 
								
							
								 
							
						 
						
							
							
								
								admin: /stop endpoint gracefully shuts down; fixes caddy stop command  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3bcd967bd 
								
							
								 
							
						 
						
							
							
								
								logging: Implement net writer ( #2884 )  
							
							
 
							
							
							* Implement UDP writer
* Implement Net Writer
* Utilize Caddy's address parsing functions
* A couple little fixes (see #2884 ) 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								6ea121ddf8 
								
									
								
							
								 
							
						 
						
							
							
								
								tls: Ensure conn policy is created when providing certs in Caddyfile  
							
							
 
							
							
							Fixes  #2929  
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								8005b7ab73 
								
									
								
							
								 
							
						 
						
							
							
								
								Couple of quick fixes  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								b1a456cfe3 
								
									
								
							
								 
							
						 
						
							
							
								
								rewrite: strip_prefix, strip_suffix, and uri_replace dirs ( closes   #2906 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								5e9d81b507 
								
									
								
							
								 
							
						 
						
							
							
								
								try_files, rewrite: allow query string in try_files ( fix   #2891 )  
							
							
 
							
							
							Also some minor cleanup/improvements discovered along the way 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								09a8517065 
								
									
								
							
								 
							
						 
						
							
							
								
								rewrite: query string enh.; substring replace; add tests (see  #2891 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								87b6cf470b 
								
									
								
							
								 
							
						 
						
							
							
								
								Minor improvements; comments and shorter placeholders & module IDs  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								f935458e3e 
								
									
								
							
								 
							
						 
						
							
							
								
								cmd: Fix validate command when JSON contains "@id" fields  
							
							
 
							
							
							Also, don't run admin server when validating... 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								2e0615270d 
								
									
								
							
								 
							
						 
						
							
							
								
								fuzz: Remove Caddyfile adapter from fuzz corpus ( #2925 )  
							
							
 
							
							
							The Caddyfile adapter does not need to be fuzzed, as all it really does
is invoke the Caddyfile parser, which is already fuzzed 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								fab5e4372a 
								
									
								
							
								 
							
						 
						
							
							
								
								core: Add godoc examples for LoadModule  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								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. 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8533e5630 
								
							
								 
							
						 
						
							
							
								
								update quic-go to v0.14.1 ( #2918 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								b07f6958ac 
								
									
								
							
								 
							
						 
						
							
							
								
								Use "IsUnixNetwork" function instead of repeating the logic  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								33a318d173 
								
									
								
							
								 
							
						 
						
							
							
								
								Don't append port to unix sockets  
							
							
 
							
							
							See https://caddy.community/t/caddy-v2-php-fpm-502-error/6571?u=matt  
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								68adfdc559 
								
							
								 
							
						 
						
							
							
								
								Fix misspellings ( #2908 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a841688cc0 
								
							
								 
							
						 
						
							
							
								
								update quic-go to v0.14.0 ( #2916 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								52ae5f70d2 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'v2' of ssh://github.com/caddyserver/caddy into v2  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								44f23a67bb 
								
									
								
							
								 
							
						 
						
							
							
								
								http: Don't listen 1 port beyond port range  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8b7d6a9ee8 
								
							
								 
							
						 
						
							
							
								
								v2: fixes query matcher parsing ( #2901 )  
							
							
 
							
							
							* fixes query matcher parsing
* return correct argument error when parsing query matcher 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								7c7ef8d40e 
								
									
								
							
								 
							
						 
						
							
							
								
								http: Shorten regexp matcher placeholders; allow "=/" for simple matcher  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								14d3fd7d03 
								
									
								
							
								 
							
						 
						
							
							
								
								http: path matcher supports exact matching with = prefix  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								512b004332 
								
									
								
							
								 
							
						 
						
							
							
								
								http: header matcher supports fast prefix and suffix matching ( #2888 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								db4293cb5f 
								
									
								
							
								 
							
						 
						
							
							
								
								reverse_proxy: Add flush_interval to caddyfile syntax ( #1460 )  
							
							
 
							
							
							Also add godoc for Caddyfile syntax for file_server 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								6e10586303 
								
									
								
							
								 
							
						 
						
							
							
								
								admin: Preserve "@id" fields through partial changes ( fixes   #2902 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								8de1a76227 
								
									
								
							
								 
							
						 
						
							
							
								
								reverse_proxy: Fix invalid argument to Intn in RandomChoice selection  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								9fe54e1c60 
								
									
								
							
								 
							
						 
						
							
							
								
								file_server: Use HTTPS port when a qualifying domain is specified  
							
							
 
							
							
							Also little comment cleanups 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								b43e986a52 
								
									
								
							
								 
							
						 
						
							
							
								
								file_server: Optional pass_thru mode  
							
							
 
							
							
							If enabled, will call the next handler in the chain instead of returning
a 404. 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								1228dd7d93 
								
									
								
							
								 
							
						 
						
							
							
								
								reverse_proxy: Allow buffering of client requests  
							
							
 
							
							
							This is a bad idea, but some backends apparently require it. See
discussion in #176 . 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								af26a03da1 
								
									
								
							
								 
							
						 
						
							
							
								
								http: Only enable access logs if configured  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								8025ad9107 
								
									
								
							
								 
							
						 
						
							
							
								
								cmd: Disable admin endpoint for file-server and reverse-proxy commands  
							
							
 
							
							
							This makes it easier to use multiple instances on the same machine 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								6cdb2392d7 
								
									
								
							
								 
							
						 
						
							
							
								
								cmd: Improve stop command by trying API before signaling process  
							
							
 
							
							
							This allows graceful shutdown on all platforms 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								0ca109db4a 
								
									
								
							
								 
							
						 
						
							
							
								
								Minor cleanups  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								0fc97211ab 
								
									
								
							
								 
							
						 
						
							
							
								
								http: Make path matcher case-insensitive  
							
							
 
							
							
							Adds tests for both the path matcher and host matcher for case
insensitivity.
If case sensitivity is required for the path, a regexp matcher can
be used instead.
This is the v2 equivalent fix of PR #2882 . 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								ad90b273db 
								
									
								
							
								 
							
						 
						
							
							
								
								core: Add tests to Replacer; fix panic ( fixes   #2852 )  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								93bc1b72e3 
								
							
								 
							
						 
						
							
							
								
								core: Use port ranges to avoid OOM with bad inputs ( #2859 )  
							
							
 
							
							
							* fix OOM issue caught by fuzzing
* use ParsedAddress as the struct name for the result of ParseNetworkAddress
* simplify code using the ParsedAddress type
* minor cleanups 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								a19da07b72 
								
									
								
							
								 
							
						 
						
							
							
								
								http: Add response headers to access logs  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								16782d9988 
								
									
								
							
								 
							
						 
						
							
							
								
								http: Use permanent redirects for HTTP->HTTPS  
							
							
								
 
							
							
						 
						6 years ago