implement connections count with template macro, add --show-hidden option, fix configuration variable names

This commit is contained in:
yggverse 2025-06-28 15:03:40 +03:00
parent 8cdd7ea8ae
commit c484a59579
8 changed files with 119 additions and 19 deletions

View file

@ -31,6 +31,12 @@ pub struct Config {
#[arg(short, long)]
pub public: String,
/// Show hidden entries (in the directory listing)
///
/// * Important: this option does not prevent access to hidden files!
#[arg(long, default_value_t = false)]
pub show_hidden: bool,
/// Absolute path to the `Access denied` template file
///
/// * this template file can be in binary format (e.g. image)
@ -56,6 +62,8 @@ pub struct Config {
///
/// **Patterns**
/// * `{list}` - entries list for the `public` directory
/// * `{hosts}` - unique visitors count
/// * `{hits}` - requests count
#[arg(long)]
pub template_welcome: Option<String>,