aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmd/caddy2/main.go22
-rw-r--r--cmd/run.go2
-rw-r--r--go.mod2
-rw-r--r--modules/caddyhttp/caddyhttp.go4
-rw-r--r--modules/caddyhttp/caddylog/log.go4
-rw-r--r--modules/caddyhttp/errors.go2
-rw-r--r--modules/caddyhttp/fileserver/browse.go4
-rw-r--r--modules/caddyhttp/fileserver/browselisting.go2
-rw-r--r--modules/caddyhttp/fileserver/matcher.go4
-rw-r--r--modules/caddyhttp/fileserver/staticfiles.go4
-rw-r--r--modules/caddyhttp/headers/headers.go4
-rw-r--r--modules/caddyhttp/markdown/markdown.go4
-rw-r--r--modules/caddyhttp/matchers.go4
-rw-r--r--modules/caddyhttp/matchers_test.go2
-rw-r--r--modules/caddyhttp/replacer.go2
-rw-r--r--modules/caddyhttp/requestbody/requestbody.go4
-rwxr-xr-xmodules/caddyhttp/reverseproxy/module.go2
-rwxr-xr-xmodules/caddyhttp/reverseproxy/upstream.go2
-rw-r--r--modules/caddyhttp/rewrite/rewrite.go4
-rw-r--r--modules/caddyhttp/routes.go2
-rw-r--r--modules/caddyhttp/server.go21
-rw-r--r--modules/caddyhttp/staticresp.go2
-rw-r--r--modules/caddyhttp/table.go2
-rw-r--r--modules/caddytls/acmemanager.go2
-rw-r--r--modules/caddytls/connpolicy.go2
-rw-r--r--modules/caddytls/fileloader.go2
-rw-r--r--modules/caddytls/folderloader.go2
-rw-r--r--modules/caddytls/matchers.go2
-rw-r--r--modules/caddytls/sessiontickets.go2
-rw-r--r--modules/caddytls/standardstek/stek.go4
-rw-r--r--modules/caddytls/tls.go2
-rw-r--r--pkg/caddyscript/matcherenv.go2
32 files changed, 63 insertions, 62 deletions
diff --git a/cmd/caddy2/main.go b/cmd/caddy2/main.go
index 7d702f003..d0289ecf4 100644
--- a/cmd/caddy2/main.go
+++ b/cmd/caddy2/main.go
@@ -1,19 +1,19 @@
package main
import (
- caddycmd "bitbucket.org/lightcodelabs/caddy2/cmd"
+ caddycmd "github.com/caddyserver/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/fileserver"
- _ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp/headers"
- _ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp/markdown"
- _ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp/requestbody"
- _ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp/reverseproxy"
- _ "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp/rewrite"
- _ "bitbucket.org/lightcodelabs/caddy2/modules/caddytls"
- _ "bitbucket.org/lightcodelabs/caddy2/modules/caddytls/standardstek"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp/caddylog"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp/fileserver"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp/headers"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp/markdown"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp/requestbody"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp/reverseproxy"
+ _ "github.com/caddyserver/caddy2/modules/caddyhttp/rewrite"
+ _ "github.com/caddyserver/caddy2/modules/caddytls"
+ _ "github.com/caddyserver/caddy2/modules/caddytls/standardstek"
)
func main() {
diff --git a/cmd/run.go b/cmd/run.go
index 47b587a6b..d7f12d779 100644
--- a/cmd/run.go
+++ b/cmd/run.go
@@ -4,7 +4,7 @@ import (
"flag"
"log"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
// Main executes the main function of the caddy command.
diff --git a/go.mod b/go.mod
index b7ab09def..3ef4f98db 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module bitbucket.org/lightcodelabs/caddy2
+module github.com/caddyserver/caddy2
go 1.12
diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go
index 8255032c6..3ffc98999 100644
--- a/modules/caddyhttp/caddyhttp.go
+++ b/modules/caddyhttp/caddyhttp.go
@@ -12,8 +12,8 @@ import (
"strings"
"time"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddytls"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddytls"
"github.com/mholt/certmagic"
)
diff --git a/modules/caddyhttp/caddylog/log.go b/modules/caddyhttp/caddylog/log.go
index f39fd8762..bad54fe24 100644
--- a/modules/caddyhttp/caddylog/log.go
+++ b/modules/caddyhttp/caddylog/log.go
@@ -5,8 +5,8 @@ import (
"net/http"
"time"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddyhttp"
)
func init() {
diff --git a/modules/caddyhttp/errors.go b/modules/caddyhttp/errors.go
index 66cb2ca38..0e7b8f2b0 100644
--- a/modules/caddyhttp/errors.go
+++ b/modules/caddyhttp/errors.go
@@ -7,7 +7,7 @@ import (
"runtime"
"strings"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
// Error is a convenient way for a Handler to populate the
diff --git a/modules/caddyhttp/fileserver/browse.go b/modules/caddyhttp/fileserver/browse.go
index bf063e51f..d86bc6446 100644
--- a/modules/caddyhttp/fileserver/browse.go
+++ b/modules/caddyhttp/fileserver/browse.go
@@ -9,8 +9,8 @@ import (
"path"
"strings"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddyhttp"
)
// Browse configures directory browsing.
diff --git a/modules/caddyhttp/fileserver/browselisting.go b/modules/caddyhttp/fileserver/browselisting.go
index 94705b3e5..ba915bf44 100644
--- a/modules/caddyhttp/fileserver/browselisting.go
+++ b/modules/caddyhttp/fileserver/browselisting.go
@@ -9,7 +9,7 @@ import (
"strings"
"time"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
"github.com/dustin/go-humanize"
)
diff --git a/modules/caddyhttp/fileserver/matcher.go b/modules/caddyhttp/fileserver/matcher.go
index 819613184..0bdbf67d3 100644
--- a/modules/caddyhttp/fileserver/matcher.go
+++ b/modules/caddyhttp/fileserver/matcher.go
@@ -4,8 +4,8 @@ import (
"net/http"
"os"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddyhttp"
)
func init() {
diff --git a/modules/caddyhttp/fileserver/staticfiles.go b/modules/caddyhttp/fileserver/staticfiles.go
index 08f92bf32..86704fa60 100644
--- a/modules/caddyhttp/fileserver/staticfiles.go
+++ b/modules/caddyhttp/fileserver/staticfiles.go
@@ -12,8 +12,8 @@ import (
"strings"
"time"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddyhttp"
)
func init() {
diff --git a/modules/caddyhttp/headers/headers.go b/modules/caddyhttp/headers/headers.go
index b07a588a6..bce543548 100644
--- a/modules/caddyhttp/headers/headers.go
+++ b/modules/caddyhttp/headers/headers.go
@@ -4,8 +4,8 @@ import (
"net/http"
"strings"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddyhttp"
)
func init() {
diff --git a/modules/caddyhttp/markdown/markdown.go b/modules/caddyhttp/markdown/markdown.go
index 9c23e44b5..e65d4e662 100644
--- a/modules/caddyhttp/markdown/markdown.go
+++ b/modules/caddyhttp/markdown/markdown.go
@@ -6,8 +6,8 @@ import (
"gopkg.in/russross/blackfriday.v2"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddyhttp"
)
func init() {
diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go
index d729acfb8..5abaa5444 100644
--- a/modules/caddyhttp/matchers.go
+++ b/modules/caddyhttp/matchers.go
@@ -13,8 +13,8 @@ import (
"regexp"
"strings"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/pkg/caddyscript"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/pkg/caddyscript"
"go.starlark.net/starlark"
)
diff --git a/modules/caddyhttp/matchers_test.go b/modules/caddyhttp/matchers_test.go
index 1297bc87f..9e5ee45ca 100644
--- a/modules/caddyhttp/matchers_test.go
+++ b/modules/caddyhttp/matchers_test.go
@@ -8,7 +8,7 @@ import (
"net/url"
"testing"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
func TestHostMatcher(t *testing.T) {
diff --git a/modules/caddyhttp/replacer.go b/modules/caddyhttp/replacer.go
index 0b0547df3..c854a2f1c 100644
--- a/modules/caddyhttp/replacer.go
+++ b/modules/caddyhttp/replacer.go
@@ -7,7 +7,7 @@ import (
"path"
"strings"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
// TODO: A simple way to format or escape or encode each value would be nice
diff --git a/modules/caddyhttp/requestbody/requestbody.go b/modules/caddyhttp/requestbody/requestbody.go
index 8aba14ebf..a0840de51 100644
--- a/modules/caddyhttp/requestbody/requestbody.go
+++ b/modules/caddyhttp/requestbody/requestbody.go
@@ -3,8 +3,8 @@ package requestbody
import (
"net/http"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddyhttp"
)
func init() {
diff --git a/modules/caddyhttp/reverseproxy/module.go b/modules/caddyhttp/reverseproxy/module.go
index 7e149d00e..76c487ff4 100755
--- a/modules/caddyhttp/reverseproxy/module.go
+++ b/modules/caddyhttp/reverseproxy/module.go
@@ -1,7 +1,7 @@
package reverseproxy
import (
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
// Register caddy module.
diff --git a/modules/caddyhttp/reverseproxy/upstream.go b/modules/caddyhttp/reverseproxy/upstream.go
index 1d77a8e1f..b8a0330c6 100755
--- a/modules/caddyhttp/reverseproxy/upstream.go
+++ b/modules/caddyhttp/reverseproxy/upstream.go
@@ -14,7 +14,7 @@ import (
"sync/atomic"
"time"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
// CircuitBreaker defines the functionality of a circuit breaker module.
diff --git a/modules/caddyhttp/rewrite/rewrite.go b/modules/caddyhttp/rewrite/rewrite.go
index fc91d2887..bbe7659e4 100644
--- a/modules/caddyhttp/rewrite/rewrite.go
+++ b/modules/caddyhttp/rewrite/rewrite.go
@@ -5,8 +5,8 @@ import (
"net/url"
"strings"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddyhttp"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddyhttp"
)
func init() {
diff --git a/modules/caddyhttp/routes.go b/modules/caddyhttp/routes.go
index 14c9f32ea..3d78c2177 100644
--- a/modules/caddyhttp/routes.go
+++ b/modules/caddyhttp/routes.go
@@ -5,7 +5,7 @@ import (
"fmt"
"net/http"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
// ServerRoute represents a set of matching rules,
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go
index a7fe02de1..a2199cad7 100644
--- a/modules/caddyhttp/server.go
+++ b/modules/caddyhttp/server.go
@@ -8,20 +8,21 @@ import (
"net/http"
"strconv"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddytls"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddytls"
)
// Server is an HTTP server.
type Server struct {
- Listen []string `json:"listen,omitempty"`
- ReadTimeout caddy2.Duration `json:"read_timeout,omitempty"`
- ReadHeaderTimeout caddy2.Duration `json:"read_header_timeout,omitempty"`
- WriteTimeout caddy2.Duration `json:"write_timeout,omitempty"`
- IdleTimeout caddy2.Duration `json:"idle_timeout,omitempty"`
- MaxHeaderBytes int `json:"max_header_bytes,omitempty"`
- Routes RouteList `json:"routes,omitempty"`
- Errors *httpErrorConfig `json:"errors,omitempty"`
+ Listen []string `json:"listen,omitempty"`
+ ReadTimeout caddy2.Duration `json:"read_timeout,omitempty"`
+ ReadHeaderTimeout caddy2.Duration `json:"read_header_timeout,omitempty"`
+ WriteTimeout caddy2.Duration `json:"write_timeout,omitempty"`
+ IdleTimeout caddy2.Duration `json:"idle_timeout,omitempty"`
+ MaxHeaderBytes int `json:"max_header_bytes,omitempty"`
+ Routes RouteList `json:"routes,omitempty"`
+ Errors *httpErrorConfig `json:"errors,omitempty"`
+ // TODO: Having a separate connection policy to act as a default or template would be handy... then override using first matching conn policy...
TLSConnPolicies caddytls.ConnectionPolicies `json:"tls_connection_policies,omitempty"`
DisableAutoHTTPS bool `json:"disable_auto_https,omitempty"`
DisableAutoHTTPSRedir bool `json:"disable_auto_https_redir,omitempty"`
diff --git a/modules/caddyhttp/staticresp.go b/modules/caddyhttp/staticresp.go
index 62ab7dd7b..091cf3a5f 100644
--- a/modules/caddyhttp/staticresp.go
+++ b/modules/caddyhttp/staticresp.go
@@ -5,7 +5,7 @@ import (
"net/http"
"strconv"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
func init() {
diff --git a/modules/caddyhttp/table.go b/modules/caddyhttp/table.go
index fce426764..62077a81d 100644
--- a/modules/caddyhttp/table.go
+++ b/modules/caddyhttp/table.go
@@ -3,7 +3,7 @@ package caddyhttp
import (
"net/http"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
func init() {
diff --git a/modules/caddytls/acmemanager.go b/modules/caddytls/acmemanager.go
index efd8e23ad..9352d757a 100644
--- a/modules/caddytls/acmemanager.go
+++ b/modules/caddytls/acmemanager.go
@@ -7,7 +7,7 @@ import (
"github.com/go-acme/lego/certcrypto"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
"github.com/go-acme/lego/challenge"
"github.com/mholt/certmagic"
)
diff --git a/modules/caddytls/connpolicy.go b/modules/caddytls/connpolicy.go
index 006afe980..c1ca41dcf 100644
--- a/modules/caddytls/connpolicy.go
+++ b/modules/caddytls/connpolicy.go
@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
"github.com/go-acme/lego/challenge/tlsalpn01"
"github.com/mholt/certmagic"
)
diff --git a/modules/caddytls/fileloader.go b/modules/caddytls/fileloader.go
index 516c63258..c633f1720 100644
--- a/modules/caddytls/fileloader.go
+++ b/modules/caddytls/fileloader.go
@@ -5,7 +5,7 @@ import (
"fmt"
"io/ioutil"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
func init() {
diff --git a/modules/caddytls/folderloader.go b/modules/caddytls/folderloader.go
index 8ec982756..0ce53b7ac 100644
--- a/modules/caddytls/folderloader.go
+++ b/modules/caddytls/folderloader.go
@@ -10,7 +10,7 @@ import (
"path/filepath"
"strings"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
func init() {
diff --git a/modules/caddytls/matchers.go b/modules/caddytls/matchers.go
index a951f91cb..712472f81 100644
--- a/modules/caddytls/matchers.go
+++ b/modules/caddytls/matchers.go
@@ -3,7 +3,7 @@ package caddytls
import (
"crypto/tls"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
// MatchServerName matches based on SNI.
diff --git a/modules/caddytls/sessiontickets.go b/modules/caddytls/sessiontickets.go
index 22c9a2fa2..1d7d9b1ef 100644
--- a/modules/caddytls/sessiontickets.go
+++ b/modules/caddytls/sessiontickets.go
@@ -9,7 +9,7 @@ import (
"sync"
"time"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
)
// SessionTicketService configures and manages TLS session tickets.
diff --git a/modules/caddytls/standardstek/stek.go b/modules/caddytls/standardstek/stek.go
index a08687297..939d021bb 100644
--- a/modules/caddytls/standardstek/stek.go
+++ b/modules/caddytls/standardstek/stek.go
@@ -5,8 +5,8 @@ import (
"sync"
"time"
- "bitbucket.org/lightcodelabs/caddy2"
- "bitbucket.org/lightcodelabs/caddy2/modules/caddytls"
+ "github.com/caddyserver/caddy2"
+ "github.com/caddyserver/caddy2/modules/caddytls"
)
func init() {
diff --git a/modules/caddytls/tls.go b/modules/caddytls/tls.go
index 6a9c97ec4..38447ba16 100644
--- a/modules/caddytls/tls.go
+++ b/modules/caddytls/tls.go
@@ -6,7 +6,7 @@ import (
"fmt"
"net/http"
- "bitbucket.org/lightcodelabs/caddy2"
+ "github.com/caddyserver/caddy2"
"github.com/go-acme/lego/challenge"
"github.com/mholt/certmagic"
)
diff --git a/pkg/caddyscript/matcherenv.go b/pkg/caddyscript/matcherenv.go
index aa9d7fd57..33e0e9906 100644
--- a/pkg/caddyscript/matcherenv.go
+++ b/pkg/caddyscript/matcherenv.go
@@ -3,7 +3,7 @@ package caddyscript
import (
"net/http"
- caddyscript "bitbucket.org/lightcodelabs/caddy2/pkg/caddyscript/lib"
+ caddyscript "github.com/caddyserver/caddy2/pkg/caddyscript/lib"
"go.starlark.net/starlark"
)