Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
fix(webserver): remove default nginx config from conf.d (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpheasey authored and ajgon committed Jul 17, 2019
1 parent df5b12f commit 23929e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libraries/drivers_webserver_nginx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def configure
add_ssl_item(:chain)
add_dhparams

remove_defaults
add_appserver_config
enable_appserver_config
super
Expand All @@ -58,6 +59,14 @@ def conf_dir
def service_name
'nginx'
end

private

def remove_defaults
notifying_file "#{conf_dir}/conf.d/default.conf", :reload do
action :delete
end
end
end
end
end

0 comments on commit 23929e3

Please sign in to comment.