pub struct DaemonOptions {Show 15 fields
pub base_path: Option<PathBuf>,
pub base_path_relaxed: bool,
pub whitelist: Vec<PathBuf>,
pub strict_paths: bool,
pub user_path: Option<String>,
pub interpolated_path: Option<String>,
pub export_all: bool,
pub services: ServiceTable,
pub informative_errors: bool,
pub access_hook: Option<PathBuf>,
pub timeout_secs: u64,
pub init_timeout_secs: u64,
pub max_connections: usize,
pub log: DaemonLog,
pub platform: Arc<dyn DaemonPlatform>,
}Expand description
Request-serving options of git daemon (everything except socket setup and
process control, which the CLI owns).
Fields§
§base_path: Option<PathBuf>--base-path=<path>: prefix for every absolute request path.
base_path_relaxed: bool--base-path-relaxed: retry the raw request path when the prefixed one fails.
whitelist: Vec<PathBuf><directory>...: whitelist compared with the validated repository path.
strict_paths: bool--strict-paths: no suffix guessing; the whitelist must match exactly.
user_path: Option<String>--user-path (Some("")) or --user-path=<path> (Some(path)).
interpolated_path: Option<String>--interpolated-path=<pathtemplate>.
export_all: bool--export-all: skip the git-daemon-export-ok check.
services: ServiceTable--enable/--disable/--allow-override/--forbid-override.
informative_errors: bool--[no-]informative-errors.
access_hook: Option<PathBuf>--access-hook=<path>.
timeout_secs: u64--timeout=<n> seconds for pack sub-requests (0 = none).
init_timeout_secs: u64--init-timeout=<n> seconds until the request line arrives (0 = none).
max_connections: usize--max-connections=<n> (0 = unlimited; git default 32).
log: DaemonLogLog destination and --verbose.
platform: Arc<dyn DaemonPlatform>OS lookups (home directories, host names).