Use paths from node attributes

This commit is contained in:
Râu Cao 2023-07-29 14:30:46 +02:00
parent 53c35fda51
commit b149264919
Signed by: raucao
GPG Key ID: 15E65F399D084BA9

View File

@ -3,13 +3,14 @@
# Recipe:: nginx_web
#
file "/etc/openresty/conf.d/garage.conf" do
file "#{node['openresty']['dir']}/conf.d/garage.conf" do
content <<-EOF
upstream garage_web {
server localhost:3902;
}
proxy_cache_path /var/cache/nginx/garage levels=1:2 keys_zone=garage_cache:10m
proxy_cache_path #{node['openresty']['cache_dir']}/garage
levels=1:2 keys_zone=garage_cache:10m
max_size=1g inactive=60m use_temp_path=off;
EOF
end