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
2.05k stars 200 forks source link

Docker image - understanding caching system #354

Closed lashawnta-pf closed 2 years ago

lashawnta-pf commented 2 years 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 2 years 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 2 years ago

Also see: #205.

lashawnta-pf commented 2 years ago

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