diff options
Diffstat (limited to '')
-rw-r--r-- | src/args.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index e42d2ff..7502d9f 100644 --- a/src/args.rs +++ b/src/args.rs @@ -294,6 +294,12 @@ pub struct CliArgs { /// Enable README.md rendering in directories #[arg(long, env = "MINISERVE_README")] pub readme: bool, + + /// Disable indexing + /// This will prevent miniserve from generating directory listings + /// and will return a 404 instead. + #[arg(long, env = "MINISERVE_DISABLE_INDEXING")] + pub disable_indexing: bool, } /// Checks whether an interface is valid, i.e. it can be parsed into an IP address |