diff options
author | metamuffin <metamuffin@disroot.org> | 2023-12-07 14:35:48 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-12-07 14:35:48 +0100 |
commit | 6566cbb3f25aa8b1247c259b5e546910b6044f93 (patch) | |
tree | e94dd775fc1fd90b4ea7b272d871e71118f102f6 /src/config.rs | |
parent | ab0d780062bff88d4fbcdd2c91ad5352c0d6279f (diff) | |
download | gnix-6566cbb3f25aa8b1247c259b5e546910b6044f93.tar gnix-6566cbb3f25aa8b1247c259b5e546910b6044f93.tar.bz2 gnix-6566cbb3f25aa8b1247c259b5e546910b6044f93.tar.zst |
move some files around and add horrible access log
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index b60ac8c..bc4369d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -70,6 +70,19 @@ pub enum RouteFilter { #[serde(flatten)] config: FileserverConfig, }, + AccessLog { + #[serde(flatten)] + config: AccessLogConfig, + }, +} + +#[derive(Debug, Serialize, Deserialize)] +pub struct AccessLogConfig { + pub file: PathBuf, + #[serde(default)] + pub flush: bool, + #[serde(default)] + pub reject_on_fail: bool, } #[derive(Debug, Serialize, Deserialize)] |