0.1.0 • Published 8 years ago
@mojodna/tp v0.1.0
'tp
Putting the tee in HTTP.
This acts as a reverse proxy and tees responses into S3 for semi-permanent storage. It's intended to be used with Varnish as a secondary backend (to serve up and populate S3 misses).
Purging the S3 Bucket
This will empty the configured S3 bucket of everything:
foreman run node bin/purge.jsIt's intended to be used when cached content is being refreshed, before Varnish is purged.
Configuration
tp.json:
{
"/background/": {
"origin": "http://background.example.com"
},
"/features/": {
"origin": "http://features.example.com"
},
"/labels/": {
"origin": "http://labels.example.com"
},
"/": {
"origin": "http://default.example.com",
"pathPrefix": "default"
}
}Environment Variables
S3_BUCKET- Target S3 bucketS3_URL- S3 URL, defaults to http://s3.amazonaws.comAWS_ACCESS_KEY_ID- AWS Access Key IDAWS_SECRET_ACCESS_KEY- AWS Secret Access KeyCACHE_EVERYTHING- treat everything as cacheable (optional), regardless of upstreamCache-ControlheadersNODE_ENV- Express environment (should beproductionin production)
0.1.0
8 years ago