From 27ecc7f384bbfc98b28dc73881968897fb8c9a8a Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 3 Apr 2019 11:47:27 -0400 Subject: 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 --- cmd/caddy2/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/caddy2/main.go b/cmd/caddy2/main.go index 9ec32f9..288edcb 100644 --- a/cmd/caddy2/main.go +++ b/cmd/caddy2/main.go @@ -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" -- cgit v1.2.3