From 7b9d6f80fc4e21bed8843b24f14563e9e6462ec4 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Mon, 12 Oct 2020 16:22:35 +0000 Subject: [PATCH] Add config structure for resource limits (commit cea8141b) --- config.example.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.example.toml b/config.example.toml index 5961fd8..22899e1 100644 --- a/config.example.toml +++ b/config.example.toml @@ -25,6 +25,16 @@ #host = '127.0.0.1' #port = 8080 + [web.search] + # Maximum runtime of grep on searches in seconds. 0 disables the time limit. + #maxTime = 10 + # Maximum size of the grep output. Output will be truncated at the last newline before this size is reached. 0 disables it. + #maxSize = 1048576 # 1 MiB + # Niceness increment for the grep process; negative values require superuser privileges. 0 keeps the same niceness as irclog. + #nice = 10 + # Memory limit for the grep process. 0 disables it. + #maxMemory = 52428800 # 50 MiB + [channels] # No channels are logged by default. #[channels.spam]