Merge branch 'support-blog-staging' of kazu634/itamae into master

This commit is contained in:
Kazuhiro MUSASHI 2019-11-13 12:34:57 +09:00 committed by Gitea
commit b71896e274
3 changed files with 14 additions and 9 deletions

View File

@ -1,8 +1,10 @@
# Create the nginx directory:
directory '/var/www/blog' do
owner 'www-data'
group 'webadm'
mode '770'
%w( blog test ).each do |d|
directory "/var/www/#{d}" do
owner 'www-data'
group 'webadm'
mode '770'
end
end
# Add the fstab entry:

View File

@ -0,0 +1 @@
kazu634:$apr1$5iMN.i2P$58gdzg.dm7Tev8gCKXlpa/

View File

@ -22,12 +22,14 @@ link '/etc/nginx/stream-enabled' do
end
# Deploy the nginx configuration files:
remote_file '/etc/nginx/nginx.conf' do
owner 'root'
group 'root'
mode '644'
%w(nginx.conf basic-auth).each do |f|
remote_file "/etc/nginx/#{f}" do
owner 'root'
group 'root'
mode '644'
notifies :reload, 'service[nginx]'
notifies :reload, 'service[nginx]'
end
end
# Log rotation setting: