mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
28 lines
609 B
Go
28 lines
609 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/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 {}
|
|
}
|