A library for writing host-specific, single-binary configuration management and deployment tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
264 B

  1. mod server;
  2. pub use server::*;
  3. use std::path::Path;
  4. pub fn acme_challenges_snippet<P: AsRef<Path>>(path: P) -> String {
  5. format!(
  6. "location ^~ /.well-known/acme-challenge/ {{
  7. alias {}/;
  8. try_files $uri =404;
  9. }}",
  10. path.as_ref().to_str().unwrap()
  11. )
  12. }