Comments (5)
I ended up creating a separate distribution for serving all files that aren't images.
from serverless-iiif.
If you use the CloudFront-enabled flavor, you can add additional origins and behaviors to the distribution it creates. I’ll have to give some thought to the best way to do that within the framework of a SAM deployment/CloudFormation stack, but you can play with the concept by making manual changes to the CloudFront distribution in the AWS console.
from serverless-iiif.
We have all our images commingled on the same bucket with resources of all media types, and only in cases where our digital repository identifies the file as an images does it access it specifically through the IIIF server—everything else (videos, audio, pdf) is just accessed directly through the s3 endpoint with a presigned URL. Curious, is there a value you're trying to gain by also having non-images pass through the IIIF server or is it more a convenience thing?
from serverless-iiif.
If you use the CloudFront-enabled flavor, you can add additional origins and behaviors to the distribution it creates. I’ll have to give some thought to the best way to do that within the framework of a SAM deployment/CloudFormation stack, but you can play with the concept by making manual changes to the CloudFront distribution in the AWS console.
Thanks @mbklein! I'll do some tinkering...that is a good pointer.
from serverless-iiif.
We have all our images commingled on the same bucket with resources of all media types, and only in cases where our digital repository identifies the file as an images does it access it specifically through the IIIF server—everything else (videos, audio, pdf) is just accessed directly through the s3 endpoint with a presigned URL. Curious, is there a value you're trying to gain by also having non-images pass through the IIIF server or is it more a convenience thing?
Thanks @fitnycdigitalinitiatives, It is more of a convenience thing at this point.
from serverless-iiif.
Related Issues (20)
- Project Branding
- Look into Lambda Streaming Response to replace 6MB workaround HOT 3
- CloudFront cache key should include Origin header when using REFLECT_ORIGIN HOT 1
- CloudFront caching interfering with CORS responses HOT 1
- Error: VipsJpeg: Bogus JPEG colorspace HOT 2
- Question -- upgrade path HOT 5
- unable to deploy standalone version HOT 4
- problems on 4.3.2 that were not on 4.2.0, maybe with image dimensions? HOT 5
- image dimension errors HOT 4
- Which viewers work best with serverless-iiif? HOT 3
- Image contains errors HOT 5
- Error: Input image exceeds pixel limit HOT 5
- Add S3 metadata info to docs
- Extract region and OpenSeaDragon error HOT 9
- can one define a custom host name in place of the Lambda host name HOT 2
- Remove `sizes` property from `info.json`? HOT 1
- Support for nodejs20 runtime
- Fix response limit docs
- Using Serverless IIIF with Cloudfront and Origin Access Control HOT 2
- Mostly jp2 images are not opening it is working in cantaloupe.Attaching error screenshot HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-iiif.