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
pill-tong configuration file
3. Set-up the# 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 configurationclient: host: 'localhost' # client server host port: 3000 # client server port (private port) # pill-tong proxy server configurationproxy: port: 80 # proxy server port (public port) # filter listsfilters: - '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