You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
375 B

6 years ago
package main
import (
"log"
"bitbucket.org/lightcodelabs/caddy2"
_ "net/http/pprof"
6 years ago
// this is where modules get plugged in
_ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
_ "bitbucket.org/lightcodelabs/dynamicconfig"
)
func main() {
err := caddy2.StartAdmin("127.0.0.1:1234")
6 years ago
if err != nil {
log.Fatal(err)
}
defer caddy2.StopAdmin()
6 years ago
select {}
}