From 859b5d7ea3b8f660ac68d9aea5a53d25a9a7422c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 26 Mar 2019 12:00:54 -0600 Subject: Initial commit --- cmd/caddy2/main.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cmd/caddy2/main.go (limited to 'cmd/caddy2') diff --git a/cmd/caddy2/main.go b/cmd/caddy2/main.go new file mode 100644 index 0000000..9e482c1 --- /dev/null +++ b/cmd/caddy2/main.go @@ -0,0 +1,21 @@ +package main + +import ( + "log" + + "bitbucket.org/lightcodelabs/caddy2" + + // this is where modules get plugged in + _ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp" + _ "bitbucket.org/lightcodelabs/dynamicconfig" +) + +func main() { + err := caddy2.Start("127.0.0.1:1234") + if err != nil { + log.Fatal(err) + } + defer caddy2.Stop() + + select {} +} -- cgit v1.2.3