Deploy the basic auth file.

This commit is contained in:
Kazuhiro MUSASHI 2019-11-10 11:45:39 +08:00
parent d6d8b2a5d2
commit bd0043cebf
2 changed files with 8 additions and 5 deletions

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: