title: Overriding server connector config with env variables with dropwizard
body: <p>I have posted this question on dw mailing list but didnt get an answer.</p>
  
  <p>Can I assume the YML format below doesnt work for DW 0.7.0 anymore? (The use of @ char to insert env var)</p>
  
  <pre><code>server:
    applicationConnectors:
      - type: http
        bindHost: @OPENSHIFT_DIY_IP@
        port: @OPENSHIFT_DIY_PORT@
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Malformed YAML at line: 28, column: 17; while scanning for the next token; found character @ '@' that cannot start any token. (Do not use @ for indentation);  in 'reader', line 28, column 17:
              bindHost: @OPENSHIFT_DIY_IP@</p>
  </blockquote>
  
  <p>So I decided to use this format:</p>
  
  <pre><code>server:
    type: simple
    applicationContextPath: /
    adminContextPath: /admin
    connector:
        type: http
        bindHost: localhost
        port: 8080
  </code></pre>
  
  <p>And tried to override it via jvm options:      </p>
  
  <pre><code>java -Ddw.server.connector.bindHost=$OPENSHIFT_DIY_IP -Ddw.server.connector.port=$OPENSHIFT_DIY_PORT -jar target/myapp.jar server myapp.yml
  </code></pre>
  
  <p>My local env variables:</p>
  
  <pre><code>OPENSHIFT_DIY_IP=localhost
  OPENSHIFT_DIY_PORT=8080
  </code></pre>
  
  <p>The error I got from this setup:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.RuntimeException: java.net.SocketException: Unresolved address
        at org.eclipse.jetty.setuid.SetUIDListener.lifeCycleStarting(SetUIDListener.java:213)
        ...
    Caused by: java.net.SocketException: Unresolved address
        at sun.nio.ch.Net.translateToSocketException(Net.java:157)
        ...
    WARN  [2014-05-03 20:11:19,412] org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED org.eclipse.jetty.server.Server@91b85: java.lang.RuntimeException: java.net.SocketException: Unresolved address</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>