Use paths from node attributes
This commit is contained in:
parent
53c35fda51
commit
b149264919
@ -3,13 +3,14 @@
|
|||||||
# Recipe:: nginx_web
|
# Recipe:: nginx_web
|
||||||
#
|
#
|
||||||
|
|
||||||
file "/etc/openresty/conf.d/garage.conf" do
|
file "#{node['openresty']['dir']}/conf.d/garage.conf" do
|
||||||
content <<-EOF
|
content <<-EOF
|
||||||
upstream garage_web {
|
upstream garage_web {
|
||||||
server localhost:3902;
|
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;
|
max_size=1g inactive=60m use_temp_path=off;
|
||||||
EOF
|
EOF
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user