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