How to start: docker run -d -p 80:3333 -e CFG_HOSTS=a,b,c -e CFG_PORTS:80,81,82 -e CFG_PATHS=/,!/b,/path:/api -e CFG_LISTEN=3333 asiknow/proxy:tag
That will start nginx listening on port 3333, proxying site http://a:80/, deny /b and http://c:82/api
Moreover, creates alias for service apis. It hides the /api path changing it with CFG_PATH+CFGAPI, so: http://a:80/xyz -> http://host:3333/xyz http://host:3333/b denied 404 http://c:82/api -> http://host:3333/path
Content type
Image
Digest
Size
7.5 MB
Last updated
over 8 years ago
docker pull asiknow/proxy:dev