| 
									
										
										
										
											2017-01-31 12:25:02 -05:00
										 |  |  | # Directives are registered in the order they should be | 
					
						
							|  |  |  | # executed. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Ordering is VERY important. Every middleware will | 
					
						
							|  |  |  | # feel the effects of all other middleware below | 
					
						
							|  |  |  | # (after) them during a request, but they must not | 
					
						
							|  |  |  | # care what middleware above them are doing. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # How to rebuild with updated middleware configurations: | 
					
						
							| 
									
										
										
										
											2017-02-19 20:34:29 +00:00
										 |  |  | # Modify the list below and run `go gen && go build` | 
					
						
							| 
									
										
										
										
											2017-01-31 12:25:02 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | # The parser takes the input format of | 
					
						
							|  |  |  | #     <order>:<middleware-name>:<package-name> | 
					
						
							| 
									
										
										
										
											2017-02-19 20:34:29 +00:00
										 |  |  | # Or | 
					
						
							|  |  |  | #     <order>:<middleware-name>:<fully-qualified-package-name> | 
					
						
							|  |  |  | # | 
					
						
							| 
									
										
										
										
											2017-01-31 12:25:02 -05:00
										 |  |  | # External middleware example: | 
					
						
							| 
									
										
										
										
											2017-02-21 22:51:47 -08:00
										 |  |  | # 80:log:github.com/coredns/coredns/middleware/log | 
					
						
							| 
									
										
										
										
											2017-01-31 12:25:02 -05:00
										 |  |  | # Local middleware example: | 
					
						
							| 
									
										
										
										
											2017-02-19 20:34:29 +00:00
										 |  |  | # 80:log:log | 
					
						
							| 
									
										
										
										
											2017-01-31 12:25:02 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-13 20:24:37 +00:00
										 |  |  | 1:tls:tls | 
					
						
							| 
									
										
										
										
											2017-02-19 20:34:29 +00:00
										 |  |  | 10:root:root | 
					
						
							|  |  |  | 20:bind:bind | 
					
						
							| 
									
										
										
										
											2017-06-13 15:47:17 -07:00
										 |  |  | 30:debug:debug | 
					
						
							|  |  |  | 40:trace:trace | 
					
						
							|  |  |  | 50:health:health | 
					
						
							|  |  |  | 60:pprof:pprof | 
					
						
							|  |  |  | 70:prometheus:metrics | 
					
						
							|  |  |  | 80:errors:errors | 
					
						
							|  |  |  | 90:log:log | 
					
						
							|  |  |  | 100:chaos:chaos | 
					
						
							|  |  |  | 110:cache:cache | 
					
						
							|  |  |  | 120:rewrite:rewrite | 
					
						
							|  |  |  | 130:loadbalance:loadbalance | 
					
						
							|  |  |  | 140:dnssec:dnssec | 
					
						
							|  |  |  | 150:reverse:reverse | 
					
						
							|  |  |  | 160:hosts:hosts | 
					
						
							|  |  |  | 170:kubernetes:kubernetes | 
					
						
							|  |  |  | 180:file:file | 
					
						
							|  |  |  | 190:auto:auto | 
					
						
							|  |  |  | 200:secondary:secondary | 
					
						
							|  |  |  | 210:etcd:etcd | 
					
						
							|  |  |  | 220:proxy:proxy | 
					
						
							|  |  |  | 230:whoami:whoami | 
					
						
							|  |  |  | 240:erratic:erratic | 
					
						
							| 
									
										
										
										
											2017-03-18 07:47:01 +00:00
										 |  |  | 500:startup:github.com/mholt/caddy/startupshutdown | 
					
						
							|  |  |  | 510:shutdown:github.com/mholt/caddy/startupshutdown |