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,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