title: How do I read port configuration for my Spray Can?
body: <p>I'm trying to set up a basic Spray Can server. In the code, I see this:</p>
  
  <pre><code>IO(Http) ! Http.Bind(service, interface = "localhost", port = 8080)
  </code></pre>
  
  <p>I'd like to have that port (8080) be configured from the application.conf file. However, the format of the conf file (<a href="http://spray.io/documentation/1.2-M8/spray-can/configuration/" rel="nofollow">http://spray.io/documentation/1.2-M8/spray-can/configuration/</a>) does not have a port defined.</p>
  
  <p>Does this mean the way to accomplish this is to define a port configuration myself, and read it from application.conf? And if so, how is this done?</p>