lib/vps/cli/upstream.rb in vps-0.1.2 vs lib/vps/cli/upstream.rb in vps-0.2.0
- old
+ new
@@ -8,10 +8,13 @@
config = VPS.read_config(host)
path = File.expand_path(path)
unless config[:upstreams].any?{|upstream| upstream[:name] == name}
spec = derive_upstream(path)
- spec[:nginx] ||= nil
+ spec[:nginx] ||= {
+ :http => nil,
+ :https => nil
+ }
config[:upstreams].push(spec.merge({
:name => name || File.basename(path),
:path => path,
:domains => [],
:email => nil,