Sign inSign up

platforme/simple-proxy

By platforme

Updated over 3 years ago

Simple HTTP proxy for node.js

Image
0

2.0K

platforme/simple-proxy repository overview

Simple (HTTP) Proxy

Simple HTTP proxy for node.js that pipelines content from back-end to front-end server with minimal buffer and minimal latency.

Installation

npm install
npm start

Configuration

NameTypeDefaultDescription
HOSTNAMEstr127.0.0.1The address of the server that serves the app.
PORTint3000The port the server will listen at.
KEYstrnullSecret key that should be passed in protected calls so that the server side "trusts" the client side (authentication).
TARGETstrhttps://app.platforme.com/The target server that the server will proxy to.
PRX_TARGETstrhttps://app.platforme.com/The same as TARGET.
PRX_KEEPALIVEint600000The number of milliseconds to keep the back-end connections alive in the connection pool
WHITELISTlist[]A list of query params and allowed values. Query params not in the list are not checked. (e.g. WHITELIST="param1:val1,val2;param2:val1,val2")

License

Simple (HTTP) Proxy is currently licensed under the Apache License, Version 2.0.

Build Automation

Build Status License

Tag summary

Content type

Image

Digest

sha256:f35bba2fe

Size

68 MB

Last updated

over 3 years ago

docker pull platforme/simple-proxy