portainer/api/http
David Eisner 419727e1eb feat(api): Connect to docker behind a name based virtual host proxy (#379)
This involves copying and modifying go's httputil.NewSingleHostReverseProxy, which is documented to (perhaps surprisingly) leave the Host header untouched. Instead, we set the Host header to the target host for the connection for the benefit of name based virtual host proxies that make use of this. The value it would otherwise have in this app, typically 'localhost:8000', is strange and unlikely to be any use.

See golang/go#7618 and golang/go#10342
2016-12-24 17:49:29 +13:00
..
auth_handler.go refactor(api): API overhaul (#392) 2016-12-18 18:21:29 +13:00
docker_handler.go feat(api): Connect to docker behind a name based virtual host proxy (#379) 2016-12-24 17:49:29 +13:00
handler.go refactor(api): API overhaul (#392) 2016-12-18 18:21:29 +13:00
middleware.go refactor(api): API overhaul (#392) 2016-12-18 18:21:29 +13:00
server.go refactor(api): API overhaul (#392) 2016-12-18 18:21:29 +13:00
settings_handler.go refactor(api): API overhaul (#392) 2016-12-18 18:21:29 +13:00
templates_handler.go refactor(api): API overhaul (#392) 2016-12-18 18:21:29 +13:00
tls.go refactor(api): API overhaul (#392) 2016-12-18 18:21:29 +13:00
user_handler.go refactor(api): API overhaul (#392) 2016-12-18 18:21:29 +13:00
websocket_handler.go refactor(api): API overhaul (#392) 2016-12-18 18:21:29 +13:00