Migrate nginx sites to openresty #511

Merged
greg merged 30 commits from chore/migrate_nginx_sites_to_openresty into master 2023-08-01 13:02:33 +00:00
Showing only changes of commit b149264919 - Show all commits

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
raucao marked this conversation as resolved Outdated
Outdated
Review

Could use node['openresty']['dir'] here instead of hardcoding `/etc/openresty"

Could use `node['openresty']['dir']` here instead of hardcoding `/etc/openresty"
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