Move static sites from centaurus to fornax #398

Merged
raucao merged 2 commits from chore/move_static_sites into master 2022-03-17 21:13:25 +00:00
Showing only changes of commit f17dd53f69 - Show all commits

View File

@ -65,3 +65,17 @@ end
unless node.chef_environment == "development"
include_recipe "kosmos-nginx::firewall"
end
ruby_block "nginx configuration" do
block do
file = Chef::Util::FileEdit.new("/etc/nginx/nginx.conf")
file.insert_line_if_no_match(/stream {/, <<-EOF
stream {
include /etc/nginx/streams-enabled/*;
}
EOF
)
file.write_file
end
notifies :reload, 'ohai[reload_nginx]', :immediately
end