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 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|
owner 'root' remote_file "/etc/nginx/#{f}" do
group 'root' owner 'root'
mode '644' group 'root'
mode '644'
notifies :reload, 'service[nginx]' notifies :reload, 'service[nginx]'
end
end end
# Log rotation setting: # Log rotation setting: