From 3e64cbbeb8d20d3d805d5418657f2116937664b3 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Fri, 27 Dec 2019 00:55:49 +0100 Subject: [PATCH] docs: update server config info --- src/config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index a3ff87f..305c32a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,5 +1,6 @@ use structopt::StructOpt; +/// A blazing fast static files-serving web server powered by Rust Iron #[derive(Debug, StructOpt)] pub struct Options { #[structopt(long, default_value = "my-static-server", env = "SERVER_NAME")] @@ -22,13 +23,13 @@ pub struct Options { default_value = "./public/50x.html", env = "SERVER_ERROR_PAGE_50X" )] - /// HTML file path for 50x errors + /// HTML file path for 50x errors. If path is not specified or simply don't exists then server will use a generic HTML error message. pub page50x: String, #[structopt( long, default_value = "./public/404.html", env = "SERVER_ERROR_PAGE_404" )] - /// HTML file path for 404 errors + /// HTML file path for 404 errors. If path is not specified or simply don't exists then server will use a generic HTML error message. pub page404: String, } -- libgit2 1.7.2