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

mod server;
pub use server::*;
use std::path::Path;
pub fn acme_challenges_snippet<P: AsRef<Path>>(path: P) -> String {
format!(
"location ^~ /.well-known/acme-challenge/ {{
alias {}/;
try_files $uri =404;
}}",
path.as_ref().to_str().unwrap()
)
}