Skip to content

SimpleHTTPResolver to public S3 bucket #537

@paroar

Description

@paroar

Hi,

I'm trying to set up a simpleHTTPResolver running on docker with loris-grok-docker image to an s3 public bucket that I can access from the browser, without luck. Here's what I tried (one at a time):

SimpleFSResolver

[resolver]
impl='loris.resolver.SimpleFSResolver'
src_img_root='/usr/local/share/images'

then fetching works fine and I get the image

http://localhost:5004/image-identifier.jpg/full/full/0/default.jpg

SimpleHTTPResolver

[resolver]
impl = 'loris.resolver.SimpleHTTPResolver'
source_prefix='https://my-bucket.s3.eu-west-3.amazonaws.com/'
cache_root='/usr/local/share/images/loris'

then fetching gives an error 404

http://localhost:5004/image-identifier.jpg/full/full/0/default.jpg

[resolver]
impl = 'loris.resolver.SimpleHTTPResolver'
uri_resolvable=True
cache_root='/usr/local/share/images/loris'

then fetching gives an error 404

http://localhost:5004/https://my-bucket.s3.eu-west-3.amazonaws.com/image-identifier.jpg/full/full/0/default.jpg

Maybe I'm misunderstanding how it works and would appreciate any help.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions