0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix a few examples using cert instead of certfile

This commit is contained in:
Loïc Hoguin 2019-05-13 11:25:00 +02:00
parent 8875b07b37
commit 3030c2d5c9
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 3 additions and 3 deletions

View file

@ -83,7 +83,7 @@ Dispatch = cowboy_router:compile([
{ok, _} = cowboy:start_tls(example, [
{port, 8443},
{cert, "path/to/cert.pem"}
{certfile, "path/to/cert.pem"}
], #{
env => #{dispatch => Dispatch}
}).
@ -95,7 +95,7 @@ Dispatch = cowboy_router:compile([
Name = example,
{ok, _} = cowboy:start_tls(Name, [
{cert, "path/to/cert.pem"}
{certfile, "path/to/cert.pem"}
], #{
env => #{dispatch => Dispatch}
}),

View file

@ -22,7 +22,7 @@ transport option to `verify_peer`:
----
{ok, _} = cowboy:start_tls(example, [
{port, 8443},
{cert, "path/to/cert.pem"},
{certfile, "path/to/cert.pem"},
{verify, verify_peer}
], #{
env => #{dispatch => Dispatch}