Giter Site home page Giter Site logo

tinypod's Introduction

TinyPod

Build Status

A simple http/tcp proxy util which can bring great fun!

What can I do?

  • I can map a directory as an http content server with just one single command!

  • I can perform as an API gateway.

  • I can also proxy a remote port on local machine!

Table of Contents


Build

You must install golang 1.8+ first! build on linux:

./make.sh

build on windows:

./make.cmd

output executable file: bin/pod

Usage

Full usage:

pod start \
-p 127.0.0.1:8080 \
-c /app
-w /usr/share/html \
-a "admin:123456" 
-i 
-b "/api:/http://test.host.com/api"
-s ":7878:192.168.1.100:22;127.0.0.1:9000:192.168.1.101:22" 
--mime

description:

-p 127.0.0.1:8080 
# start http server listening on 127.0.0.1:8080, if you want to disable http server, try: -p -

-c /app
# http context path

-w /usr/share/html
# the http server root directory.

-a "admin:123456" 
# http basic auth

-i
# whether index directory

-b "/api:/http://test.host.com/api"
#  this is typically used as API gateway.

-s ":7878:192.168.1.100:22;127.0.0.1:9000:192.168.1.101:22" 
# this parameter means that pod is listening on 0.0.0.0:7878 
# which is forwarding to 192.168.1.100:22 and 127.0.0.1:9000 is forwarding to 192.168.1.101:22.

--mime
# support http mime types

Docker Image:

https://cloud.docker.com/u/hehety/repository/docker/hehety/tinypod

Donation

AliPay

Wechat Pay

Paypal

Donate money by Paypal to my account [email protected].

tinypod's People

Contributors

hetianyi avatar

Watchers

James Cloos avatar redlove1314 avatar

Forkers

dulumao

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.