proxy

command module
v0.0.0-...-257b6ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL