Skip to content
Simple nodejs image proxy with build in cache
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead of ThauEx:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cache
.foreverignore
.gitignore
Dockerfile
LICENSE
README.md
index.js
package.json

README.md

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
You can’t perform that action at this time.