In the code below, I'd rather have the transport, port, key file and password in a config file.
Thanks, Joel
---
cowboy:start_listener(http, 100,
cowboy_tcp_transport, [{port, 8080}],
cowboy_http_protocol, [{dispatch, Dispatch}]
),
cowboy:start_listener(https, 100,
cowboy_ssl_transport, [
{port, 8443}, {certfile, "priv/ssl/cert.pem"},
{keyfile, "priv/ssl/key.pem"}, {password, "cowboy"}],
cowboy_http_protocol, [{dispatch, Dispatch}]
),
--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
On Dec 1, 2011, at 4:03 PM, Bob Ippolito wrote:
> You could just call the appropriate application module functions to get the data from keys in your app's config.
--------------------------------------------------------------------------