mirror of
https://github.com/umputun/reproxy.git
synced 2025-11-23 22:04:57 +02:00
rename to reproxy
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# docker-proxy (dpx) [](https://github.com/umputun/docker-proxy/actions/workflows/ci.yml)
|
# reproxy [](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.
|
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
|
Server can be FQDN, i.e. `s.example.com` or `*` (catch all). Requested url can be regex, for example `^/api/(.*)` and destination url
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
log "github.com/go-pkgz/lgr"
|
log "github.com/go-pkgz/lgr"
|
||||||
"github.com/pkg/errors"
|
"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
|
//go:generate moq -out docker_client_mock.go -skip-ensure -fmt goimports . DockerClient
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
|
|
||||||
"github.com/umputun/docker-proxy/app/discovery"
|
"github.com/umputun/reproxy/app/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
// File implements file-based provider
|
// File implements file-based provider
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/umputun/docker-proxy/app/discovery"
|
"github.com/umputun/reproxy/app/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Static provider, rules are server,from,to
|
// Static provider, rules are server,from,to
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/umputun/go-flags"
|
"github.com/umputun/go-flags"
|
||||||
|
|
||||||
"github.com/umputun/docker-proxy/app/discovery"
|
"github.com/umputun/reproxy/app/discovery"
|
||||||
"github.com/umputun/docker-proxy/app/discovery/provider"
|
"github.com/umputun/reproxy/app/discovery/provider"
|
||||||
"github.com/umputun/docker-proxy/app/proxy"
|
"github.com/umputun/reproxy/app/proxy"
|
||||||
)
|
)
|
||||||
|
|
||||||
var opts struct {
|
var opts struct {
|
||||||
|
|||||||
@@ -13,8 +13,9 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"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) {
|
func TestHttp_Do(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user