UNPKG

back-proxy

Version:

Reversing proxy to you gadgets or home http-server behind NAT with dynamic WAN ip. Needs two "servers": one in Internet for you connects for proxing and second in you home for serve proxy requests.

21 lines (17 loc) 344 B
module.exports = { // Public server config (where you connect to access LAN server) public: { host: '1.2.3.4', port: '8080' }, // Upstream server config (where proxy from LAN connect) upstream: { host: '1.2.3.4', port: '8888' }, // Shared server config (server in LAN) shared: { host: '192.168.0.201', port: '8000' } };