Skip to content

kroksys/proxy-service-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxy Service

Very simple HTTP proxy which forwards all the requests to a given domain.

Logs to file all requests and responses that go through it.

Usage

Help

go run . proxy -h

Run with defaults

go run . proxy

Run with CLI flags

go run . proxy --listen 0.0.0.0:5000 --target http://httpforever.com --log anotherlog.txt

Run with config

go run . proxy -c config.yaml

Test

I tested only proxy part, but it would be great to test config file reading and loging to file as an improvement.

go test ./src/proxy

About

Proxy service example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages