Skip to content
This repository has been archived by the owner on Oct 4, 2018. It is now read-only.
/ thumbp Public archive

Thumbnail image reverse proxy for DPLA infrastructure

Notifications You must be signed in to change notification settings

dpla-attic/thumbp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thumbp

Setting up with npm

This will install packages locally into node_modules within thumbp:

$ cd /path/to/thumbp/dir
$ npm install

Installing for development or testing

$ npm install -g mocha
$ mocha

Example invocation

This runs the application locally on port 8080 without detaching from your console:

$ node thumbp.js http://es_loadbal:9200/dpla_alias/item 8080

Example thumbnail given that invocation: http://localhost:8080/thumb/aacca3079a48aaacc3cdb473379048fc

TODO

  • Improve logging
  • We may want to pass through more headers, like Last-Modified, although this is intended to run behind a reverse proxy like NGINX with aggressive caching being forced.
  • We may want to observe If-Modified-Since and pass back 304 responses from the upstream to the client.

About

Thumbnail image reverse proxy for DPLA infrastructure

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •