Browse Source

Add config structure for resource limits (commit cea8141b)

master
JustAnotherArchivist 3 years ago
parent
commit
7b9d6f80fc
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      config.example.toml

+ 10
- 0
config.example.toml View File

@@ -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]


Loading…
Cancel
Save