diff options
| author | Fuwn <[email protected]> | 2022-03-30 21:31:03 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-30 21:31:03 +0000 |
| commit | 53020cb3717f4d2e88ce69ecfcb79b573b5cda7d (patch) | |
| tree | 93135407e2886cda4d35f598fd7375232df8ffc9 /README.md | |
| parent | feat(router): specify custom port (diff) | |
| download | windmark-53020cb3717f4d2e88ce69ecfcb79b573b5cda7d.tar.xz windmark-53020cb3717f4d2e88ce69ecfcb79b573b5cda7d.zip | |
fix(router): use different certificate file
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -14,11 +14,11 @@ Windmark is an elegant and highly performant, async Gemini server framework. # Cargo.toml [dependencies] -windmark = "0.1.4" +windmark = "0.1.5" tokio = { version = "0.2.4", features = ["full"] } # If you would like to use the built-in logger (recommended) -# windmark = { version = "0.1.4", features = ["logger"] } +# windmark = { version = "0.1.5", features = ["logger"] } ``` ### Implement a Windmark server @@ -32,7 +32,7 @@ use windmark::Response; fn main() -> Result<(), Box<dyn std::error::Error>> { windmark::Router::new() .set_private_key_file("windmark_private.pem") - .set_certificate_chain_file("windmark_pair.pem") + .set_certificate_chain_file("windmark_public.pem") .mount("/", Box::new(|_| Response::Success("Hello, World!".into()))) .set_error_handler(Box::new(|_| { Response::PermanentFailure("This route does not exist!".into()) |