Create sym-link to `/etc/nginx` config directories.

This commit is contained in:
Kazuhiro MUSASHI 2019-11-03 13:38:31 +08:00 committed by Gitea
parent 7349dc9b30
commit eddc0a517f
1 changed files with 12 additions and 6 deletions

View File

@ -7,12 +7,18 @@
end
end
%w( sites-available sites-enabled stream-available stream-enabled).each do |d|
directory "/etc/nginx/#{d}" do
owner 'root'
group 'root'
mode '755'
end
link '/etc/nginx/sites-enabled' do
to '/home/webadm/repo/nginx-config/sites-available'
user 'root'
notifies :reload, 'service[nginx]'
end
link '/etc/nginx/stream-enabled' do
to '/home/webadm/repo/nginx-config/stream-available'
user 'root'
notifies :reload, 'service[nginx]'
end
# Deploy the nginx configuration files: