Deploy the basic auth file.
This commit is contained in:
parent
d6d8b2a5d2
commit
bd0043cebf
|
@ -0,0 +1 @@
|
||||||
|
kazu634:$apr1$5iMN.i2P$58gdzg.dm7Tev8gCKXlpa/
|
|
@ -22,13 +22,15 @@ link '/etc/nginx/stream-enabled' do
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deploy the nginx configuration files:
|
# Deploy the nginx configuration files:
|
||||||
remote_file '/etc/nginx/nginx.conf' do
|
%w(nginx.conf basic-auth).each do |f|
|
||||||
|
remote_file "/etc/nginx/#{f}" do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :reload, 'service[nginx]'
|
notifies :reload, 'service[nginx]'
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Log rotation setting:
|
# Log rotation setting:
|
||||||
remote_file '/etc/logrotate.d/nginx' do
|
remote_file '/etc/logrotate.d/nginx' do
|
||||||
|
|
Loading…
Reference in New Issue