summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-05-04 13:21:20 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-05-04 13:21:20 -0600
commit2eb35933271d5b2ef1ca29aaa8f00f6748c56424 (patch)
tree480d08eb3f9b85353fb858d2b1b6c9cb86f33954 /cmd
parent1136e2cfeed5cc06a0811d39c2560c06f9dd74a2 (diff)
Begin implementing HTTP replacer and static responder
Diffstat (limited to 'cmd')
-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()
}