diff --git a/README.md b/README.md index 859ff98..3474da8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# docker-proxy (dpx) [![build](https://github.com/umputun/docker-proxy/actions/workflows/ci.yml/badge.svg)](https://github.com/umputun/docker-proxy/actions/workflows/ci.yml) +# reproxy [![build](https://github.com/umputun/reproxy/actions/workflows/ci.yml/badge.svg)](https://github.com/umputun/reproxy/actions/workflows/ci.yml) -Simple edge HTTP(s) proxy for various providers (docker, static, file). One or more providers supply information +Simple edge reverse HTTP(s) proxy for various providers (docker, static, file). One or more providers supply information about requested server, requested url and destination url. Server can be FQDN, i.e. `s.example.com` or `*` (catch all). Requested url can be regex, for example `^/api/(.*)` and destination url diff --git a/app/discovery/provider/docker.go b/app/discovery/provider/docker.go index 01b1a40..da2468a 100644 --- a/app/discovery/provider/docker.go +++ b/app/discovery/provider/docker.go @@ -11,7 +11,7 @@ import ( log "github.com/go-pkgz/lgr" "github.com/pkg/errors" - "github.com/umputun/docker-proxy/app/discovery" + "github.com/umputun/reproxy/app/discovery" ) //go:generate moq -out docker_client_mock.go -skip-ensure -fmt goimports . DockerClient diff --git a/app/discovery/provider/file.go b/app/discovery/provider/file.go index 20b8378..446b1b7 100644 --- a/app/discovery/provider/file.go +++ b/app/discovery/provider/file.go @@ -10,7 +10,7 @@ import ( "github.com/pkg/errors" "gopkg.in/yaml.v3" - "github.com/umputun/docker-proxy/app/discovery" + "github.com/umputun/reproxy/app/discovery" ) // File implements file-based provider diff --git a/app/discovery/provider/static.go b/app/discovery/provider/static.go index e640807..b1e30f4 100644 --- a/app/discovery/provider/static.go +++ b/app/discovery/provider/static.go @@ -7,7 +7,7 @@ import ( "github.com/pkg/errors" - "github.com/umputun/docker-proxy/app/discovery" + "github.com/umputun/reproxy/app/discovery" ) // Static provider, rules are server,from,to diff --git a/app/main.go b/app/main.go index 8385fef..30286fd 100644 --- a/app/main.go +++ b/app/main.go @@ -14,9 +14,9 @@ import ( "github.com/pkg/errors" "github.com/umputun/go-flags" - "github.com/umputun/docker-proxy/app/discovery" - "github.com/umputun/docker-proxy/app/discovery/provider" - "github.com/umputun/docker-proxy/app/proxy" + "github.com/umputun/reproxy/app/discovery" + "github.com/umputun/reproxy/app/discovery/provider" + "github.com/umputun/reproxy/app/proxy" ) var opts struct { diff --git a/app/proxy/proxy_test.go b/app/proxy/proxy_test.go index 7447154..14b8d3c 100644 --- a/app/proxy/proxy_test.go +++ b/app/proxy/proxy_test.go @@ -13,8 +13,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/umputun/docker-proxy/app/discovery" - "github.com/umputun/docker-proxy/app/discovery/provider" + + "github.com/umputun/reproxy/app/discovery" + "github.com/umputun/reproxy/app/discovery/provider" ) func TestHttp_Do(t *testing.T) { diff --git a/go.mod b/go.mod index c03ff87..b15a0ce 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/umputun/docker-proxy +module github.com/umputun/reproxy go 1.16