|
@@ -9,9 +9,9 @@ start(_,_) -> supervisor:start_link({local,sample},sample,[]).
|
|
|
stop(_) -> ok.
|
|
|
init([]) -> case cowboy:start_http(http,3,port(),env()) of
|
|
|
{ok, _} -> ok;
|
|
|
- {error,_} -> halt(abort,[]) end,
|
|
|
- {ok, {{one_for_one, 5, 10}, []}}.
|
|
|
+ {error,_} -> halt(abort,[]) end, sup().
|
|
|
|
|
|
+sup() -> { ok, { { one_for_one, 5, 100 }, [] } }.
|
|
|
env() -> [ { env, [ { dispatch, points() } ] } ].
|
|
|
static() -> { dir, "apps/sample/priv/static", mime() }.
|
|
|
n2o() -> { dir, "deps/n2o/priv", mime() }.
|
|
@@ -21,6 +21,6 @@ points() -> cowboy_router:compile([{'_', [
|
|
|
{ "/static/[...]", n2o_static, static() },
|
|
|
{ "/n2o/[...]", n2o_static, n2o() },
|
|
|
{ "/ws/[...]", n2o_stream, [] },
|
|
|
- { '_', n2o_cowboy, [] } ]}]).
|
|
|
+ { '_', n2o_cowboy, [] }]}]).
|
|
|
|
|
|
log_modules() -> [n2o_client,n2o_nitrogen,n2o_stream,wf_convert].
|