summaryrefslogtreecommitdiff
path: root/cmd/caddy2
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/caddy2')
-rw-r--r--cmd/caddy2/main.go18
1 files changed, 4 insertions, 14 deletions
diff --git a/cmd/caddy2/main.go b/cmd/caddy2/main.go
index 4be632c..5a09d87 100644
--- a/cmd/caddy2/main.go
+++ b/cmd/caddy2/main.go
@@ -1,28 +1,18 @@
package main
import (
- "log"
-
- _ "net/http/pprof"
-
- "bitbucket.org/lightcodelabs/caddy2"
+ caddycmd "bitbucket.org/lightcodelabs/caddy2/cmd"
// 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/reverseproxy"
_ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp/staticfiles"
+ _ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp/staticresp"
_ "bitbucket.org/lightcodelabs/caddy2/modules/caddytls"
- _ "bitbucket.org/lightcodelabs/dynamicconfig"
- _ "bitbucket.org/lightcodelabs/proxy"
)
func main() {
- err := caddy2.StartAdmin("127.0.0.1:1234")
- if err != nil {
- log.Fatal(err)
- }
- defer caddy2.StopAdmin()
-
- select {}
+ caddycmd.Main()
}