mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Add crypto into the required applications
As suggested by @prof3ta.
This commit is contained in:
parent
9facad9245
commit
aeb86e70c1
4 changed files with 6 additions and 7 deletions
|
@ -20,7 +20,8 @@
|
||||||
{applications, [
|
{applications, [
|
||||||
kernel,
|
kernel,
|
||||||
stdlib,
|
stdlib,
|
||||||
ranch
|
ranch,
|
||||||
|
crypto
|
||||||
]},
|
]},
|
||||||
{mod, {cowboy_app, []}},
|
{mod, {cowboy_app, []}},
|
||||||
{env, []}
|
{env, []}
|
||||||
|
|
|
@ -13,10 +13,6 @@
|
||||||
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
%% @doc WebSocket protocol implementation.
|
%% @doc WebSocket protocol implementation.
|
||||||
%%
|
|
||||||
%% When using websockets, make sure that the crypto application is
|
|
||||||
%% included in your release. If you are not using releases then there
|
|
||||||
%% is no need for concern as crypto is already included.
|
|
||||||
-module(cowboy_websocket).
|
-module(cowboy_websocket).
|
||||||
|
|
||||||
%% API.
|
%% API.
|
||||||
|
|
|
@ -128,6 +128,7 @@ groups() ->
|
||||||
|
|
||||||
init_per_suite(Config) ->
|
init_per_suite(Config) ->
|
||||||
application:start(inets),
|
application:start(inets),
|
||||||
|
application:start(crypto),
|
||||||
application:start(ranch),
|
application:start(ranch),
|
||||||
application:start(cowboy),
|
application:start(cowboy),
|
||||||
Config.
|
Config.
|
||||||
|
@ -135,6 +136,7 @@ init_per_suite(Config) ->
|
||||||
end_per_suite(_Config) ->
|
end_per_suite(_Config) ->
|
||||||
application:stop(cowboy),
|
application:stop(cowboy),
|
||||||
application:stop(ranch),
|
application:stop(ranch),
|
||||||
|
application:stop(crypto),
|
||||||
application:stop(inets),
|
application:stop(inets),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
@ -159,7 +161,6 @@ init_per_group(https, Config) ->
|
||||||
{password, "cowboy"}
|
{password, "cowboy"}
|
||||||
],
|
],
|
||||||
Config1 = init_static_dir(Config),
|
Config1 = init_static_dir(Config),
|
||||||
application:start(crypto),
|
|
||||||
application:start(public_key),
|
application:start(public_key),
|
||||||
application:start(ssl),
|
application:start(ssl),
|
||||||
{ok, _} = cowboy:start_https(https, 100, Opts ++ [{port, Port}], [
|
{ok, _} = cowboy:start_https(https, 100, Opts ++ [{port, Port}], [
|
||||||
|
@ -199,7 +200,6 @@ end_per_group(https, Config) ->
|
||||||
cowboy:stop_listener(https),
|
cowboy:stop_listener(https),
|
||||||
application:stop(ssl),
|
application:stop(ssl),
|
||||||
application:stop(public_key),
|
application:stop(public_key),
|
||||||
application:stop(crypto),
|
|
||||||
end_static_dir(Config),
|
end_static_dir(Config),
|
||||||
ok;
|
ok;
|
||||||
end_per_group(http, Config) ->
|
end_per_group(http, Config) ->
|
||||||
|
|
|
@ -33,6 +33,7 @@ groups() ->
|
||||||
|
|
||||||
init_per_suite(Config) ->
|
init_per_suite(Config) ->
|
||||||
application:start(inets),
|
application:start(inets),
|
||||||
|
application:start(crypto),
|
||||||
application:start(ranch),
|
application:start(ranch),
|
||||||
application:start(cowboy),
|
application:start(cowboy),
|
||||||
Config.
|
Config.
|
||||||
|
@ -40,6 +41,7 @@ init_per_suite(Config) ->
|
||||||
end_per_suite(_Config) ->
|
end_per_suite(_Config) ->
|
||||||
application:stop(cowboy),
|
application:stop(cowboy),
|
||||||
application:stop(ranch),
|
application:stop(ranch),
|
||||||
|
application:stop(crypto),
|
||||||
application:stop(inets),
|
application:stop(inets),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue