Did you verify that the template still works if options[:port] is not set? So if -p is not passed, you end up with ` proxy_pass http://10.0.3.xxx:` in the nginx conf (which may be ok)