Skip to content

Latest commit

 

History

History
42 lines (21 loc) · 852 Bytes

README.md

File metadata and controls

42 lines (21 loc) · 852 Bytes

proxy

Simple HTTP/WebSocket proxy used access lab environment

This project use default golang http libaray, so have some performance issue, in the future should be changed.

flowqio/proxy use dep as default golang package manage tool.

proxy need access docker.sock (default docker access endpoint)

proxy is flowq compoent , deployed every env host through k8s as DaemonSet

how to install

go get -u github.com/flowqio/proxy

dep ensure

go build

./proxy

how is work

The endpoint follow spec rule :

http|https://{{ container id [:16]}}-{{ export port }}-{{env cluster}}.env.flowq.io

When proxy accept brower/client request , it will check local docker and proxy all data.

Docker image

cd images docker build -t .

or :

docker pull flowq/proxy docker run -d -P -v /var/run/docker.sock:/var/run/docker.sock flowq/proxy