mirror of https://github.com/portainer/portainer
23 lines
587 B
Go
23 lines
587 B
Go
|
// +build !windows
|
||
|
|
||
|
package proxy
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func (factory *proxyFactory) newLocalProxy(path string) http.Handler {
|
||
|
proxy := &localProxy{}
|
||
|
transport := &proxyTransport{
|
||
|
enableSignature: false,
|
||
|
ResourceControlService: factory.ResourceControlService,
|
||
|
TeamMembershipService: factory.TeamMembershipService,
|
||
|
SettingsService: factory.SettingsService,
|
||
|
RegistryService: factory.RegistryService,
|
||
|
DockerHubService: factory.DockerHubService,
|
||
|
dockerTransport: newSocketTransport(path),
|
||
|
}
|
||
|
proxy.Transport = transport
|
||
|
return proxy
|
||
|
}
|