ThauEx / node-image-proxy

Simple nodejs image proxy with build in cache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-image-proxy

Simple script which will fetch the given image, caches and returns it. When it's already in the cache, it is delivered from there. Default cache time is one day for now. Broken or ivalid images won't be cached and an empty image is returned.

####Setup

npm install

####How to start You can use nohub to start it in the background:

nohup node index.js &

Or forever:

forever start index.js

It listens to port 9091, but can be changed via the PORT ENV

PORT=9091 node index.js

####TODO

  • configurable port
  • optimize images

About

Simple nodejs image proxy with build in cache

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 100.0%