Protocol and Caddyscript matchers

* Added matcher to determine what protocol the request is being made by
  - grpc, tls, http
* Added ability to run caddyscript in a matcher to evaluate the http request
* Added TLS field to caddyscript request time
* Added a library to manipulate and compare a new caddyscript time type
* Library for regex in starlark
This commit is contained in:
dev 2019-04-03 11:47:27 -04:00
parent 402f423693
commit 27ecc7f384
9 changed files with 341 additions and 12 deletions

View file

@ -3,11 +3,12 @@ package main
import (
"log"
"bitbucket.org/lightcodelabs/caddy2"
_ "net/http/pprof"
"bitbucket.org/lightcodelabs/caddy2"
// this is where modules get plugged in
_ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
_ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp/caddylog"
_ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp/staticfiles"