aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-30 21:31:03 +0000
committerFuwn <[email protected]>2022-03-30 21:31:03 +0000
commit53020cb3717f4d2e88ce69ecfcb79b573b5cda7d (patch)
tree93135407e2886cda4d35f598fd7375232df8ffc9 /README.md
parentfeat(router): specify custom port (diff)
downloadwindmark-53020cb3717f4d2e88ce69ecfcb79b573b5cda7d.tar.xz
windmark-53020cb3717f4d2e88ce69ecfcb79b573b5cda7d.zip
fix(router): use different certificate file
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index b8a777c..c9e953d 100644
--- a/README.md
+++ b/README.md
@@ -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())