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:
parent
8875b07b37
commit
3030c2d5c9
2 changed files with 3 additions and 3 deletions
|
@ -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}
|
||||
}),
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue