Replies: 2 comments 1 reply
-
Thanks for bringing this up @hveiga - I think this sounds like a good idea generally. Most of the potential issues sound like ones that you should consider yourself if setting up a custom caching location:
What do you think should be the behavior if the configuring location doesn't exist or is not writable? NGINX will fail to start by default in that situation:
Hope other users can comment on this as well 😅 |
Beta Was this translation helpful? Give feedback.
-
I'm a little confused about this request. Although you can't change the path of the cache directory |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was wondering if it would make sense to make the paths where nginx is caching requests configurable. I think this could be beneficial in a container setting where you want to store the cached requests in a different volume.
Right now, the path is hardcoded:
nginx-s3-gateway/common/etc/nginx/templates/cache.conf.template
Line 3 in a2f1540
nginx-s3-gateway/common/etc/nginx/templates/cache.conf.template
Line 11 in a2f1540
One caveat I could see about storing the cached requests somewhere else is if the container gets restarted, those files might be left behind and never cleaned up by nginx. Is there any other scenario where this could be a problem?
After the discussion, and if there is an agreement, I am happy to open a PR to introduce new environment variable to configure these paths.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions