caddy/cmd/caddy2/main.go
dev 27ecc7f384 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
2019-04-08 09:58:11 -04:00

26 lines
513 B
Go

package main
import (
"log"
_ "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"
_ "bitbucket.org/lightcodelabs/dynamicconfig"
)
func main() {
err := caddy2.StartAdmin("127.0.0.1:1234")
if err != nil {
log.Fatal(err)
}
defer caddy2.StopAdmin()
select {}
}