weserv / images

Source code of wsrv.nl (formerly images.weserv.nl), to be used on your own server(s).
https://wsrv.nl/
BSD 3-Clause "New" or "Revised" License
1.84k stars 187 forks source link

Docker image - understanding caching system #354

Closed lashawnta-pf closed 1 year ago

lashawnta-pf commented 1 year ago

I have your docker image working on AWS, but it's not clear to me where the caching is happening. All of the redis refences are commented out. With the docker image are will still sending our images to a caching system managed on your side or somehow on our side as I didn't configure anything related to caching? Please advise. Just want to be able to explain for legal purposes.

kleisauke commented 1 year ago

Nothing will be sent to our servers if you decide to host this project yourself. By default the Docker image uses nginx's proxy_cache directive to handle image caching, this can be disabled using the imagesweserv-no-cache.conf config. For example:

FROM ghcr.io/weserv/images:5.x

RUN cp ngx_conf/imagesweserv-no-cache.conf /etc/nginx/imagesweserv.conf
kleisauke commented 1 year ago

Also see: #205.

lashawnta-pf commented 1 year ago

@kleisauke thank you for kindly repeating the answer to what you have already answered. My apologies for missing that.