Permalink
Browse files

updated doc and config example

  • Loading branch information...
1 parent 7ee9c78 commit b2df03e241f4c4f62375d83a54e0b99261d26b84 Grzegorz Stanislawski committed Sep 9, 2011
Showing with 14 additions and 0 deletions.
  1. +10 −0 doc-src/api-config.html
  2. +4 −0 skel/boss.config
View
10 doc-src/api-config.html
@@ -39,6 +39,16 @@
<li><code>mochiweb</code> - The <a href="http://code.google.com/p/mochiweb/">Mochiweb</a> Web Server</li>
<li><code>misultin</code> - The <a href="http://code.google.com/p/misultin/">Misultin</a> Web Server</li>
</ul>
+ <li><code>servers</code> - A list of proplists with per-listener configuration. This override the defaults and above options, and have to contain folowing parameters:
+ <ul>
+ <li><code>server</code>The HTTP server to use. Valid values same as above</li>
+ <li><code>name</code>Name of server process, arbitrary atom can be set.</li>
+ <li><code>ip</code>IP address for HTTP server to bind to, use 0.0.0.0 to bind to all</li>
+ <li><code>port</code>The port to run the HTTP server on.</li>
+ <li><code>ssl_enable</code> - Enable HTTP over SSL for given server</li>
+ <li><code>ssl_options</code> - SSL options for this server; see <a href="http://www.erlang.org/doc/man/ssl.html">ssl(3erl)</a></li>
+ </ul>There are no defaults for those parameters.</li>
+
<li><code>base_url</code>Sets the base_url passed to the views (for deployments on suburl's)</li>
<li><code>session_adapter</code> Selects the session driver to use. Valid values:</li>
<ul>
View
4 skel/boss.config
@@ -6,6 +6,10 @@
{log_dir, "log"},
{server, mochiweb},
{port, 8001},
+% {servers,[
+% [{server, mochiweb}, {name,base_server}, {ip,"0.0.0.0"}, {port, 8001}, {ssl_enable, false}, {ssl_options, []}],
+% [{server, mochiweb}, {name,ssl_server}, {ip,"0.0.0.0"}, {port, 8002}, {ssl_enable, true}, {ssl_options, [{certfile, "server.pem"}, {keyfile, "privkey.pem"}]}]
+% ]},
{session_adapter, mock},
{session_key, "_boss_session"},
{session_exp_time, 525600}

0 comments on commit b2df03e

Please sign in to comment.