lib/hako/fronts/nginx.rb in hako-0.4.0 vs lib/hako/fronts/nginx.rb in hako-0.5.0

- old
+ new

@@ -22,19 +22,19 @@ def nginx_location_conf_erb File.join(templates_directory, 'nginx.location.conf.erb') end def locations - locs = @config.extra.fetch('locations', {}).dup + locs = extra.fetch('locations', {}).dup locs['/'] ||= {} locs.keys.each do |k| locs[k] = Location.new(locs[k]) end locs end def client_max_body_size - @config.extra.fetch('client_max_body_size', nil) + extra.fetch('client_max_body_size', nil) end def render_location(listen_spec, location) ERB.new(File.read(nginx_location_conf_erb), nil, '-').result(binding).each_line.map do |line| " #{line}"