pill-tong

1.0.3 • Public • Published

thumbnail

GitHub release (latest SemVer) GitHub tag (latest by date) LICENSE Known Vulnerabilities

English | Korean

Pill-Tong is a reverse proxy server written in NodeJS, and it provides HTTP request filtering layer using customizable middlewares.

Its concept is easy to understand; (1) first of all, you just install pill-tong NPM module (2) set middleware filters (3) and then, enter the pilltong command.

Currently some filters exists as follows :

So, you can compose a web server that given filtered HTTP requests.

Quick Start

1. Install via npm

npm install pill-tong -g

2. Create a Service

pilltong --create

3. Set-up the pill-tong configuration file

# pill-tong.yml: default configuration file name 
vim pill-tong.yml

4. Configure the Firewall rules

  • your real server port: private
  • pill-tong proxy server port: public

5. Starts the pill-tong Proxy Server

pilltong

Options

--create # create a service 
--conf <path> # set configuration file path (default: ./pill-tong.yml) 
--noHello # hello message print or not (default: false) 

Pill-Tong Configuration

# client configuration
client:
  host: 'localhost' # client server host
  port: 3000 # client server port (private port)
 
# pill-tong proxy server configuration
proxy:
  port: 80 # proxy server port (public port)
 
# filter lists
filters:
  - 'xss-filter' # filter installing via npm
  - './filter/my-filter' # user define filter
 
# ssl configuration (disable)
ssl: false
 
# ssl configuration (enable)
# ssl:
#     key: './cert/private.pem'
#     cert: './cert/public.pem'

License

Pill-Tong is licensed under the MIT License

Readme

Keywords

Package Sidebar

Install

npm i pill-tong

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

3.14 MB

Total Files

44

Last publish

Collaborators

  • gumball12