From e940f7eac872964a390baeb0a94d4a4a649b33f4 Mon Sep 17 00:00:00 2001 From: Erik Hollensbe Date: Thu, 17 Feb 2022 02:56:38 -0800 Subject: [PATCH] move acmed to examples so it isn't automatically installed Signed-off-by: Erik Hollensbe --- Cargo.toml | 4 ++-- README.md | 2 +- {src => examples}/acmed.rs | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename {src => examples}/acmed.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index f8f560e..9437235 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,6 +46,6 @@ webpki-roots = "^0.22" [lib] -[[bin]] +[[example]] name = "acmed" -path = "src/acmed.rs" +path = "examples/acmed.rs" diff --git a/README.md b/README.md index c914912..91303cb 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ coyote is intended to let you build an `acmed` without using `acmed` itself, but ## Running `acmed` -[acmed](src/acmed.rs) is a very small, example implementation of coyote, intended to demonstrate usage of it. It is not meant or designed to be used in a production environment. It does not perform challenges properly, allowing all of them that come in. +[acmed](examples/acmed.rs) is a very small, example implementation of coyote, intended to demonstrate usage of it. It is not meant or designed to be used in a production environment. It does not perform challenges properly, allowing all of them that come in. You'll need `docker` to launch the postgres instance. Provide `HOSTNAME` to set a host name for TLS service; otherwise `localhost` is assumed. A CA at `ca.pem` and `ca.key` will be generated at the directory you run the `cargo` commands from, which you will need to pass to clients to your certificates. Also, a TLS in-memory cert will be generated to serve the `acmed` instance. diff --git a/src/acmed.rs b/examples/acmed.rs similarity index 100% rename from src/acmed.rs rename to examples/acmed.rs